summaryrefslogtreecommitdiff
path: root/idlc/source/preproc/unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'idlc/source/preproc/unix.c')
-rw-r--r--idlc/source/preproc/unix.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/idlc/source/preproc/unix.c b/idlc/source/preproc/unix.c
index a1b52ce72f06..4997e317e697 100644
--- a/idlc/source/preproc/unix.c
+++ b/idlc/source/preproc/unix.c
@@ -33,15 +33,14 @@
#if (defined(_WIN32) || defined(_MSDOS) || defined(__IBMC__))
#include <io.h>
#include <sys/stat.h>
+#include <external/glibc/getopt.h>
#else
#include <unistd.h>
#endif
#include "cpp.h"
-extern int cppgetopt(int, char *const *, const char *);
-extern char *optarg, rcsid[];
-extern int optind;
+extern char rcsid[];
int Pflag = 0; /* print no line information */
int Iflag = 0; /* print includes */
@@ -62,7 +61,7 @@ void
Tokenrow tr;
setup_kwtab();
- while ((c = cppgetopt(argc, argv, "NOPV:I:D:U:F:A:X:u:l:+")) != -1)
+ while ((c = getopt(argc, argv, "NOPV:I:D:U:F:A:X:u:l:+")) != -1)
switch (c)
{
case 'N':