direwolf/external/misc
Brett T. Warden 760447b6e2 Fix cmake error on external misc library
For Linux builds, if strlcpt and strlcat are already provided, cmake is
given an empty list of sources to build for the "misc" library. Newer
versions of cmake throw an error for this. In this case, we should just
avoid building the library.

Failure pattern:
CMake Error at external/misc/CMakeLists.txt:35 (add_library):
  No SOURCES given to target: misc
CMake Generate step failed.  Build files cannot be regenerated correctly.

Fixes #319
2023-08-14 09:05:00 -07:00
..
CMakeLists.txt Fix cmake error on external misc library 2023-08-14 09:05:00 -07:00
README cmake: new build tool 2019-11-09 08:26:33 +01:00
strcasestr.c cmake: new build tool 2019-11-09 08:26:33 +01:00
strlcat.c cmake: new build tool 2019-11-09 08:26:33 +01:00
strlcpy.c cmake: new build tool 2019-11-09 08:26:33 +01:00
strsep.c cmake: new build tool 2019-11-09 08:26:33 +01:00
strtok_r.c cmake: new build tool 2019-11-09 08:26:33 +01:00

README

Files in this directory fill in the gaps missing for some operating systems.


--------------------------------------

These are part of the standard C library for Linux, BSD Unix, and similar operating systems.
They are not present for MS Windows so we need to supply our own copy.

From http://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/net/tnftp/files/libnetbsd/strsep.c
and other BSD locations.

	strsep.c
	strcasestr.c
	strtok_r.c

--------------------------------------


These are needed for the Linux and Windows versions.
They should be part of the standard C library for OpenBSD, FreeBSD, Mac OS X.

http://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/net/tnftp/files/libnetbsd/strlcpy.c
http://ftp.netbsd.org/pub/pkgsrc/current/pkgsrc/net/tnftp/files/libnetbsd/strlcat.c

	strlcpy.c
	strlcat.c