ports/devel/fortran-utils/files/patch-fsplit_fsplit.c
Baptiste Daroussin e408d35ede Prevent collision with getline(3)
while here regen patches
2016-05-11 21:55:09 +00:00

29 lines
634 B
C

--- fsplit/fsplit.c.orig 2000-01-30 21:03:32 UTC
+++ fsplit/fsplit.c
@@ -97,7 +97,7 @@ struct stat sbuf;
#define trim(p) while (*p == ' ' || *p == '\t') p++
-int getline __P((void));
+int get_line __P((void));
void get_name __P((char *, int));
char *functs __P((char *));
int lend __P((void));
@@ -171,7 +171,7 @@ char **argv;
errx(1, "can not open %s", x);
nflag = 0;
rv = 0;
- while (getline() > 0) {
+ while (get_line() > 0) {
rv = 1;
fprintf(ofp, "%s", buf);
if (lend()) /* look for an 'end' statement */
@@ -263,7 +263,7 @@ int letters;
}
int
-getline()
+get_line()
{
register char *ptr;