mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-19 19:59:43 +00:00
Fix collision with getline(3)
This commit is contained in:
parent
afe4a531d7
commit
8c56705be4
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=419429
20
irc/ircservices/files/patch-lang_langcomp.c
Normal file
20
irc/ircservices/files/patch-lang_langcomp.c
Normal file
@ -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",
|
Loading…
Reference in New Issue
Block a user