diff options
Diffstat (limited to 'math/moo/files/patch-moo.y')
-rw-r--r-- | math/moo/files/patch-moo.y | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/math/moo/files/patch-moo.y b/math/moo/files/patch-moo.y index 14776a3a6668..9d9ea2a78efe 100644 --- a/math/moo/files/patch-moo.y +++ b/math/moo/files/patch-moo.y @@ -1,6 +1,6 @@ ---- moo.y.orig Thu Apr 5 14:14:22 2007 -+++ moo.y Thu Apr 5 14:14:29 2007 -@@ -37,7 +37,7 @@ +--- moo.y.orig 2016-06-04 10:05:27 UTC ++++ moo.y +@@ -34,7 +34,7 @@ static int used_oct; static void divbyzero(void); static void printnum(int64_t); @@ -9,3 +9,23 @@ void yyerror(char *); int yylex(void); int yyparse(void); +@@ -317,9 +317,6 @@ main(int argc, char *argv[]) + { + int ch; + +- if (pledge("stdio tmppath", NULL) == -1) +- err(1, "pledge"); +- + while ((ch = getopt(argc, argv, "0123456789b:lsuw:")) != -1) + switch (ch) { + /* +@@ -403,9 +400,6 @@ DONEPARSING: + yyin = sfp; + } + +- if (pledge("stdio", NULL) == -1) +- err(1, "pledge"); +- + yyparse(); + + return (0); |