summaryrefslogtreecommitdiffstats
path: root/src/getopt.h
diff options
context:
space:
mode:
authorMike Seplowitz <mseplowitz@bloomberg.net>2015-01-13 01:53:14 (GMT)
committerMike Seplowitz <mseplowitz@bloomberg.net>2015-08-19 12:43:59 (GMT)
commitcdab57de00ab7ce157f1fdd601ce242588fcadce (patch)
treee22fc97286d2766c596108f13ba49d27a30f8c37 /src/getopt.h
parent94c10a6a18ceadf78d27245ce389610c67a7cf2e (diff)
downloadNinja-cdab57de00ab7ce157f1fdd601ce242588fcadce.zip
Ninja-cdab57de00ab7ce157f1fdd601ce242588fcadce.tar.gz
Ninja-cdab57de00ab7ce157f1fdd601ce242588fcadce.tar.bz2
Fix getopt for AIX
AIX supplies getopt but not getopt_long. We can't use the embedded getopt implementation, since the constness of its arguments doesn't match the AIX system routine.
Diffstat (limited to 'src/getopt.h')
-rw-r--r--src/getopt.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/getopt.h b/src/getopt.h
index b4247fb..965dc29 100644
--- a/src/getopt.h
+++ b/src/getopt.h
@@ -39,7 +39,9 @@ extern "C"
extern int optopt;
/* function prototypes */
+#ifndef _AIX
int getopt (int argc, char **argv, char *optstring);
+#endif
int getopt_long (int argc, char **argv, const char *shortopts,
const GETOPT_LONG_OPTION_T * longopts, int *longind);
int getopt_long_only (int argc, char **argv, const char *shortopts,