summaryrefslogtreecommitdiff
path: root/audio/cmp3/files/patch-cmp3common.c
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2016-05-22 16:15:38 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2016-05-22 16:15:38 +0000
commitf7f6fbe43d1003563b8c55febf45305cfbfebf79 (patch)
treeec44686f27f026817e7f2302edcf972ff661ff51 /audio/cmp3/files/patch-cmp3common.c
parentUpdate to 0.2.1 (diff)
Prevent collision with getline(3)
Notes
Notes: svn path=/head/; revision=415638
Diffstat (limited to '')
-rw-r--r--audio/cmp3/files/patch-cmp3common.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/audio/cmp3/files/patch-cmp3common.c b/audio/cmp3/files/patch-cmp3common.c
new file mode 100644
index 000000000000..e77e883d8e56
--- /dev/null
+++ b/audio/cmp3/files/patch-cmp3common.c
@@ -0,0 +1,18 @@
+--- cmp3common.c.orig 2001-06-13 20:13:13 UTC
++++ cmp3common.c
+@@ -102,7 +102,7 @@ int Strncmp(const char *str1, /* Firs
+ return(i);
+ }
+
+-int getline(char *var, /* Buffer to copy line into */
++int get_line(char *var, /* Buffer to copy line into */
+ int maxbuf, /* MAX to send to fgets */
+ FILE *input /* File descriptor to get line from */)
+ {
+@@ -142,4 +142,4 @@ void *Malloc(size_t size)
+ }
+
+
+-/* EOF */
+\ No newline at end of file
++/* EOF */