diff options
| author | Baptiste Daroussin <bapt@FreeBSD.org> | 2016-05-11 20:22:07 +0000 |
|---|---|---|
| committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2016-05-11 20:22:07 +0000 |
| commit | 00c788d9978b4ca105067762e5166743cf104c01 (patch) | |
| tree | 632f0487b70d960f8daade9fcd42f209ff772605 /lang/hope/files/patch-src_source.c | |
| parent | emulators/i386-wine-devel: update to 1.9.9_1. (diff) | |
Prevent collision with getline(3)
Diffstat (limited to 'lang/hope/files/patch-src_source.c')
| -rw-r--r-- | lang/hope/files/patch-src_source.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lang/hope/files/patch-src_source.c b/lang/hope/files/patch-src_source.c new file mode 100644 index 000000000000..f5a11a47c5a2 --- /dev/null +++ b/lang/hope/files/patch-src_source.c @@ -0,0 +1,20 @@ +--- src/source.c.orig 1999-04-09 23:40:26 UTC ++++ src/source.c +@@ -250,7 +250,7 @@ static const char *const errname[] = { + abort(); + if (errtype >= FATALERR) { + if (gen_listing) /* copy the rest to the listing */ +- while (getline()) ++ while (get_line()) + ; + (void)exit(1); + } +@@ -287,7 +287,7 @@ interactive(void) + * otherwise it ends in a newline (whitespace) and then a null. + */ + global Bool +-getline(void) ++get_line(void) + { + if (atend && cur_source >= source) { + if (cur_source > source) |
