ports/graphics/pecomato/files/patch-util.h
Martin Wilke 5055e5aee5 - Fix build after addition of getdelim() and strndup()
PR:		133053
Submitted by:	David Schultz <das@freebsd.org>
2009-03-25 15:46:07 +00:00

22 lines
429 B
C

--- util.h.orig 2007-09-28 12:04:57.000000000 -0400
+++ util.h 2009-03-25 03:18:26.000000000 -0400
@@ -10,6 +10,7 @@
#define _util_h_
+#include <sys/param.h>
#include <stdio.h>
#include <stdarg.h>
@@ -67,9 +68,11 @@
#define _SSIZE_T_DECLARED
#endif
#endif
+#if __FreeBSD_version < 800067
#include "gnu-getline.h"
#include "gnu-strndup.h"
#endif
+#endif
/* Microsoft Windows specific defines */
#ifdef OS_WIN32