-#if !(defined(_AIX) || defined(__hpux))
+#ifdef CONFIG_GETOPT_LONG_ONLY
#include <getopt.h>
-#else /* _AIX || __hpux */
+#else
#ifndef _GETOPT_H
#define _GETOPT_H
int getopt_long_only(int, char *const *, const char *, const struct option *, int *);
-#endif /* _GETOPT_H */
-#endif /* _AIX || __hpux */
+#endif
+#endif