$NetBSD: patch-ac,v 1.8 2011/08/20 16:02:23 cheusov Exp $ Solaris has , but the plain getopt() function is defined in , so it needs both headers. --- configure.orig 2011-07-21 14:52:29.000000000 +0000 +++ configure @@ -28383,11 +28383,10 @@ extern "C" { #endif #if HAVE_GETOPT_H #include - #else + #endif #if HAVE_UNISTD_H #include #endif - #endif } int main ()