aboutsummaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2016-07-30 06:56:17 +0800
committerbapt <bapt@FreeBSD.org>2016-07-30 06:56:17 +0800
commit1d1c22f7144d2f226bae2c06183de35a4a1a95c9 (patch)
treee0cd417380f433be8f08b35262f72de6bb9debfa /devel
parent3d97fa471fd665a85d7dcd4b37a79050f7a9f6fe (diff)
downloadfreebsd-ports-graphics-1d1c22f7144d2f226bae2c06183de35a4a1a95c9.tar.gz
freebsd-ports-graphics-1d1c22f7144d2f226bae2c06183de35a4a1a95c9.tar.zst
freebsd-ports-graphics-1d1c22f7144d2f226bae2c06183de35a4a1a95c9.zip
prevent collision with getline(3)
Diffstat (limited to 'devel')
-rw-r--r--devel/cvs/files/patch-lib_getline.c11
-rw-r--r--devel/cvs/files/patch-lib_getline.h11
2 files changed, 22 insertions, 0 deletions
diff --git a/devel/cvs/files/patch-lib_getline.c b/devel/cvs/files/patch-lib_getline.c
new file mode 100644
index 00000000000..d1ed3784724
--- /dev/null
+++ b/devel/cvs/files/patch-lib_getline.c
@@ -0,0 +1,11 @@
+--- lib/getline.c.orig 2012-01-21 05:30:24 UTC
++++ lib/getline.c
+@@ -155,7 +155,7 @@ getstr (lineptr, n, stream, terminator,
+ }
+
+ int
+-getline (lineptr, n, stream)
++get_line (lineptr, n, stream)
+ char **lineptr;
+ size_t *n;
+ FILE *stream;
diff --git a/devel/cvs/files/patch-lib_getline.h b/devel/cvs/files/patch-lib_getline.h
new file mode 100644
index 00000000000..1ea8bf20417
--- /dev/null
+++ b/devel/cvs/files/patch-lib_getline.h
@@ -0,0 +1,11 @@
+--- lib/getline.h.orig 2012-01-21 05:30:24 UTC
++++ lib/getline.h
+@@ -12,7 +12,7 @@
+ #define GETLINE_NO_LIMIT -1
+
+ int
+- getline __PROTO ((char **_lineptr, size_t *_n, FILE *_stream));
++ get_line __PROTO ((char **_lineptr, size_t *_n, FILE *_stream));
+ int
+ getline_safe __PROTO ((char **_lineptr, size_t *_n, FILE *_stream,
+ int limit));