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