From 09fa5bc41c7fc270bc3aba5a51759473f2078967 Mon Sep 17 00:00:00 2001 From: Michael Perzl Date: Wed, 13 Jul 2011 18:43:57 +0200 Subject: [PATCH] Fix AIX compile When adding HPUX support the compile for AIX was broken in "lib/getopt.h". Signed-off-by: Jens Axboe --- lib/getopt.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lib/getopt.h b/lib/getopt.h index 0dd4608c..237cbae5 100644 --- a/lib/getopt.h +++ b/lib/getopt.h @@ -1,9 +1,8 @@ -#ifndef _AIX -#ifndef __hpux +#if !(defined(_AIX) || defined(__hpux)) #include -#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 */ -- 2.25.1