summaryrefslogtreecommitdiff
path: root/idlc/source/preproc/unix.c
diff options
context:
space:
mode:
authorMatthias Huetsch [mhu] <matthias.huetsch@oracle.com>2010-12-13 11:06:14 +0100
committerMatthias Huetsch [mhu] <matthias.huetsch@oracle.com>2010-12-13 11:06:14 +0100
commitb480a8b31cfa6e4b24c111c32905b58e33a52138 (patch)
tree41cc052a715eb7df15cb846bfb26707fffec9f21 /idlc/source/preproc/unix.c
parent340b22a09175abb796dc7df234962ef958b1ad6f (diff)
parente944bed1166d34170eaa6ff3dcabfc73a5d81edf (diff)
Update from master repository (DEV300_m95).
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 2d37fa1eef95..808b1d90dbd3 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':