I'm trying to compile a source code which was originally written for FreeBSD
and since strlcpy isn't included in the linux GlibC , I'm now stopped at this stage.
GCC has suggested that I can use strncpy but I don't want to actually change the source code.
Do I need to re-compile my LibC ?
Any help is appreciated.
/usr/include/bsd/string.h
? Then install them using you linux distribution package manager. On my archlinux it's owned byextra/libbsd
package.apt-file
to find out which (uninstalled) package contains a file. It's very useful.apt-file search /usr/include/bsd/string.h
reports that the file is in the packagelibbsd-dev
, just as Ismael's answer says.