1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-25 04:43:33 +00:00

Fix build on -CURRENT after getline() import

This commit is contained in:
Max Brazhnikov 2009-03-20 13:33:39 +00:00
parent 4101083c2f
commit 6ed18c5fde
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=230478

View File

@ -1,9 +1,13 @@
--- ./src/console_output.c.orig 2008-06-12 04:48:13.000000000 +0400
+++ ./src/console_output.c 2008-06-15 18:04:23.000000000 +0400
@@ -44,6 +44,153 @@
+++ ./src/console_output.c 2009-03-20 16:18:03.000000000 +0300
@@ -44,6 +44,159 @@
#else
/* defines & functions for gxine */
+#if defined(__FreeBSD__)
+#include <osreldate.h>
+#if __FreeBSD_version < 800067
+
+/* from src/contrib/cvs/lib/getline.h */
+#if defined (__GNUC__) || (defined (__STDC__) && __STDC__)
+#define __PROTO(args) args
@ -150,6 +154,8 @@
+}
+
+/* getline.c */
+#endif /* __FreeBSD_version */
+#endif /* defined(__FreeBSD__) */
+
# include <pthread.h>
# include <string.h>