svn commit: r419429 - head/irc/ircservices/files
Baptiste Daroussin
bapt at FreeBSD.org
Mon Aug 1 06:36:54 UTC 2016
Author: bapt
Date: Mon Aug 1 06:36:52 2016
New Revision: 419429
URL: https://svnweb.freebsd.org/changeset/ports/419429
Log:
Fix collision with getline(3)
Added:
head/irc/ircservices/files/patch-lang_langcomp.c (contents, props changed)
Added: head/irc/ircservices/files/patch-lang_langcomp.c
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/irc/ircservices/files/patch-lang_langcomp.c Mon Aug 1 06:36:52 2016 (r419429)
@@ -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",
More information about the svn-ports-head
mailing list