diff options
author | rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2006-06-15 17:54:31 +0000 |
---|---|---|
committer | rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2006-06-15 17:54:31 +0000 |
commit | 2eee213724d50fd77dcd9538fe68827562b9d841 (patch) | |
tree | c2342ba6c88dbde80de3c731979fb941f2ab7808 | |
parent | a4370c21c3ebcca34234a746d5502f59de60280c (diff) |
langcomp should now compile even with _GNU_SOURCES defined, some compiles/oss seem to do it by default
git-svn-id: svn://svn.anope.org/anope/trunk@1054 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@778 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r-- | Changes | 1 | ||||
-rw-r--r-- | lang/langcomp.c | 4 |
2 files changed, 3 insertions, 2 deletions
@@ -25,6 +25,7 @@ Provided by Anope Dev. <dev@anope.org> - 2006 06/14 F Removed last traces of threading support. [#498] 06/14 F Changed mysql detection to use mysql_config. [ #00] 06/15 F OpenBSD Config issue. [#519] +06/15 F langcomp with _GNU_SOURCES defined. [ #00] Provided by ThaPrince <jon@vile.com> - 2006 05/19 A Plexus 3 support. [ #00] diff --git a/lang/langcomp.c b/lang/langcomp.c index 1aace4e09..28d0c67b6 100644 --- a/lang/langcomp.c +++ b/lang/langcomp.c @@ -118,7 +118,7 @@ int stringnum(const char *name) /* Read a non-comment, non-blank line from the input file. Return NULL at * end of file. */ -char *getline(FILE *f) +char *ano_getline(FILE *f) { static char buf[1024]; char *s; @@ -205,7 +205,7 @@ int main(int ac, char **av) return 1; } - while (maxerr > 0 && (line = getline(in)) != NULL) { + while (maxerr > 0 && (line = ano_getline(in)) != NULL) { if (*line == '\t') { if (curstring == -2) { fprintf(stderr, "%s:%d: Junk at beginning of file\n", |