diff options
author | Caolán McNamara <caolanm@redhat.com> | 2010-10-13 15:31:15 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-10-13 20:29:38 +0100 |
commit | 122c09f5112e28d08b205c096ceb23b5a43c3ecd (patch) | |
tree | 3f0bc15aba9b0cde5927fff6a18d2febdbc590d9 /soltools/cpp | |
parent | 509ff5a4a9fcb8d7f3e73d9309db9b08a645e442 (diff) |
tweak for AIX
Diffstat (limited to 'soltools/cpp')
-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" |