diff options
-rw-r--r-- | soltools/cpp/_unix.c | 4 | ||||
-rw-r--r-- | soltools/cpp/makefile.mk | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/soltools/cpp/_unix.c b/soltools/cpp/_unix.c index 5352f6f1f5f9..4148822f31f4 100644 --- a/soltools/cpp/_unix.c +++ b/soltools/cpp/_unix.c @@ -12,7 +12,7 @@ #include "cpp.h" -#if defined MACOSX || !defined HAVE_GETOPT +#if defined MACOSX || defined AIX || !defined HAVE_GETOPT extern int stgetopt(int, char *const *, const char *); extern char *optarg; extern int optind; @@ -42,7 +42,7 @@ void Tokenrow tr; setup_kwtab(); -#if defined MACOSX || !defined HAVE_GETOPT +#if defined MACOSX || defined(AIX) || !defined HAVE_GETOPT while ((c = stgetopt(argc, argv, "NOPV:I:D:U:F:A:X:u:l:+")) != -1) #else while ((c = getopt(argc, argv, "NOPV:I:D:U:F:A:X:u:l:+")) != -1) diff --git a/soltools/cpp/makefile.mk b/soltools/cpp/makefile.mk index 533cf9a91ab7..71c581a38325 100644 --- a/soltools/cpp/makefile.mk +++ b/soltools/cpp/makefile.mk @@ -55,7 +55,7 @@ OBJFILES= \ # nonstandard cpp options needed for Mac (-isysroot), # needs the custom stgetopt defined here :/ -.IF "$(OS)" == "MACOSX" || "$(HAVE_GETOPT)" != "YES" +.IF "$(OS)" == "MACOSX" || "$(OS)" == "AIX" || "$(HAVE_GETOPT)" != "YES" OBJFILES += $(OBJ)$/_getopt.obj .ENDIF .IF "$(HAVE_GETOPT)" == "YES" |