Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 1 Aug 2016 06:36:53 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r419429 - head/irc/ircservices/files
Message-ID:  <201608010636.u716arIE059472@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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",



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201608010636.u716arIE059472>