summaryrefslogtreecommitdiff
path: root/src/gnu
diff options
context:
space:
mode:
authoreschnett <eschnett@17b73243-c579-4c4c-a9d2-2d5706c11dac>2012-09-13 18:48:52 +0000
committereschnett <eschnett@17b73243-c579-4c4c-a9d2-2d5706c11dac>2012-09-13 18:48:52 +0000
commitf5a837336ff575f67290d428e813172b3fa5264d (patch)
tree84550b2c2485f1c7135862b2affacd61766b4dd5 /src/gnu
parent2ed204fbda3bd637e74f66af45b60c126d90cb26 (diff)
Disable K&R prototype for getopt()
git-svn-id: http://svn.cactuscode.org/flesh/trunk@4868 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/gnu')
-rw-r--r--src/gnu/getopt.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gnu/getopt.h b/src/gnu/getopt.h
index b0147e9d..09da8572 100644
--- a/src/gnu/getopt.h
+++ b/src/gnu/getopt.h
@@ -150,7 +150,9 @@ extern int _getopt_internal (int __argc, char *const *__argv,
int __long_only);
# endif
#else /* not __STDC__ */
-extern int getopt ();
+/* The declaration below leads to a prototype mismatch with
+ IBM XL C/C++ for AIX, V11.1 (5724-X13), Version: 11.01.0000.0005 */
+/* extern int getopt (); */
# ifndef __need_getopt
extern int getopt_long ();
extern int getopt_long_only ();