1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-16 03:24:07 +00:00
freebsd-ports/sysutils/lookat/files/patch-getline.h
Martin Wilke 8006aae6f8 - Fix build after addition of adding getdelim(), getline()
PR:		132982
Submitted by:	Florian Smeets <flo@kasimir.com>
2009-03-23 21:47:57 +00:00

17 lines
397 B
C

--- ./getline.h.orig 2009-03-23 18:40:41.000000000 +0000
+++ ./getline.h 2009-03-23 18:40:20.000000000 +0000
@@ -36,8 +36,13 @@
int
getline PARAMS ((char **_lineptr, size_t *_n, FILE *_stream));
+#if defined(__FreeBSD__)
+#include <osreldate.h>
+#if __FreeBSD_version <= 800066
int
getdelim PARAMS ((char **_lineptr, size_t *_n, int _delimiter, FILE *_stream));
+#endif
+#endif
# endif