ports/sysutils/busybox/files/patch-include__platform.h
Matthias Andree 53a1994b64 New bug fixes from upstream (bumping PORTREVISION),
some fixes moved into an official upstream patch,
added patch to fix getline() related failures e.g. on 8.2-RELEASE* i386.
2011-08-28 13:59:23 +00:00

18 lines
507 B
C

--- ./include/platform.h.orig 2011-08-11 02:23:58.000000000 +0200
+++ ./include/platform.h 2011-08-28 12:58:14.000000000 +0200
@@ -421,6 +421,15 @@
#if defined(__FreeBSD__)
# undef HAVE_STRCHRNUL
+
+# if __FreeBSD__ + 0 >= 2
+# include <osreldate.h>
+# if __FreeBSD_version >= 800067
+# define HAVE_GETLINE 1 /* FreeBSD added getdelim(), getline(),
+ stpncpy(), strnlen(), wcsnlen(),
+ wcscasecmp(), and wcsncasecmp() in 800067 */
+# endif
+# endif
#endif
#if defined(__NetBSD__)