Fix AIX compile
authorMichael Perzl <michael@perzl.org>
Wed, 13 Jul 2011 16:43:57 +0000 (18:43 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Wed, 13 Jul 2011 16:43:57 +0000 (18:43 +0200)
When adding HPUX support the compile for AIX was broken in "lib/getopt.h".

Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
lib/getopt.h

index 0dd4608cd8a6bbd671631db8cb6e7a4a0c721d23..237cbae541e716ea046fc55c35b1362014dada87 100644 (file)
@@ -1,9 +1,8 @@
-#ifndef _AIX
-#ifndef __hpux
+#if !(defined(_AIX) || defined(__hpux))
 
 #include <getopt.h>
 
-#else /* _AIX */
+#else /* _AIX || __hpux */
 
 #ifndef _GETOPT_H
 #define _GETOPT_H
@@ -24,5 +23,4 @@ enum {
 int getopt_long_only(int, char *const *, const char *, const struct option *, int *);
 
 #endif /* _GETOPT_H */
-#endif /* __hpux */
-#endif /* _AIX */
+#endif /* _AIX || __hpux */