diff --git a/tools/bc/patches/001-getopt-declaration.patch b/tools/bc/patches/001-getopt-declaration.patch new file mode 100644 index 0000000000..c64be8dc03 --- /dev/null +++ b/tools/bc/patches/001-getopt-declaration.patch @@ -0,0 +1,11 @@ +--- a/lib/getopt.c ++++ b/lib/getopt.c +@@ -197,7 +197,7 @@ static char *posixly_correct; + whose names are inconsistent. */ + + #ifndef getenv +-extern char *getenv (); ++extern char *getenv (const char *); + #endif + + #endif /* not __GNU_LIBRARY__ */