Fix AIX compile
[fio.git] / lib / getopt.h
index 56fe3bf481f9b5b128443fbeb06a1c17e6b3b66f..237cbae541e716ea046fc55c35b1362014dada87 100644 (file)
@@ -1,8 +1,8 @@
-#ifndef _AIX
+#if !(defined(_AIX) || defined(__hpux))
 
 #include <getopt.h>
 
-#else /* _AIX */
+#else /* _AIX || __hpux */
 
 #ifndef _GETOPT_H
 #define _GETOPT_H
@@ -23,4 +23,4 @@ enum {
 int getopt_long_only(int, char *const *, const char *, const struct option *, int *);
 
 #endif /* _GETOPT_H */
-#endif /* _AIX */
+#endif /* _AIX || __hpux */