summaryrefslogtreecommitdiff
path: root/irc/ircservices/files
diff options
context:
space:
mode:
authorBaptiste Daroussin <bapt@FreeBSD.org>2016-08-01 06:36:52 +0000
committerBaptiste Daroussin <bapt@FreeBSD.org>2016-08-01 06:36:52 +0000
commit8c56705be41d316fe4fa5d58b175a56011f1757a (patch)
tree3c65c80e42b88ab6ded91e7996abdbf04c4394ec /irc/ircservices/files
parentRemove tridiavnc, it has no upstream since 2005 (diff)
Fix collision with getline(3)
Notes
Notes: svn path=/head/; revision=419429
Diffstat (limited to 'irc/ircservices/files')
-rw-r--r--irc/ircservices/files/patch-lang_langcomp.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/irc/ircservices/files/patch-lang_langcomp.c b/irc/ircservices/files/patch-lang_langcomp.c
new file mode 100644
index 000000000000..c9ae5f265edc
--- /dev/null
+++ b/irc/ircservices/files/patch-lang_langcomp.c
@@ -0,0 +1,20 @@
+--- lang/langcomp.c.orig 2009-07-11 14:53:19 UTC
++++ lang/langcomp.c
+@@ -115,7 +115,7 @@ static int stringnum(const char *name)
+ /* Read a non-comment, non-blank line from the input file. Return NULL at
+ * end of file. */
+
+-static char *getline(FILE *f)
++static char *get_line(FILE *f)
+ {
+ static char buf[1024];
+ char *s;
+@@ -196,7 +196,7 @@ int main(int ac, char **av)
+ return 1;
+ }
+
+- while (maxerr > 0 && (line = getline(in)) != NULL) {
++ while (maxerr > 0 && (line = get_line(in)) != NULL) {
+ if (*line == '\t') {
+ if (curstring == -2) {
+ fprintf(stderr, "%s:%d: Junk at beginning of file\n",