diff options
author | wiz <wiz@pkgsrc.org> | 2015-12-11 13:11:08 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2015-12-11 13:11:08 +0000 |
commit | 5b7142f0c5a2c2d5c3f2d63573a35af773cada64 (patch) | |
tree | 36cea24e551a53d4c8c272593a2338f039de48f0 /math/pari/patches | |
parent | 087f2c4ffc9041974f849f1f5f9b432223280ff7 (diff) | |
download | pkgsrc-5b7142f0c5a2c2d5c3f2d63573a35af773cada64.tar.gz |
dd patch to fix build with USE_FORTIFY.
Diffstat (limited to 'math/pari/patches')
-rw-r--r-- | math/pari/patches/patch-src_language_es.c | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/math/pari/patches/patch-src_language_es.c b/math/pari/patches/patch-src_language_es.c new file mode 100644 index 00000000000..50ba987a00a --- /dev/null +++ b/math/pari/patches/patch-src_language_es.c @@ -0,0 +1,23 @@ +$NetBSD: patch-src_language_es.c,v 1.1 2015/12/11 13:11:08 wiz Exp $ + +Remove fgets() indirection to fix build with USE_FORTIFY. + +--- src/language/es.c.orig 2008-03-31 11:43:58.000000000 +0000 ++++ src/language/es.c +@@ -215,7 +215,6 @@ gp_read_stream_buf(FILE *fi, Buffer *b) + init_filtre(&F, b); + + IM.file = fi; +- IM.fgets= &fgets; + IM.getline= &file_input; + IM.free = 0; + return input_loop(&F,&IM); +@@ -309,7 +308,7 @@ file_input(char **s0, int junk, input_me + *s0 = b->buf + used0; + } + s = b->buf + used; +- if (! IM->fgets(s, left, IM->file)) ++ if (! fgets(s, left, IM->file)) + return first? NULL: *s0; /* EOF */ + + l = strlen(s); first = 0; |