pkgsrc/archivers/dar/patches/patch-ac

20 lines
787 B
Text

$NetBSD: patch-ac,v 1.7 2006/08/30 15:58:25 rillig Exp $
Solaris has <getopt.h>, but the plain getopt() function is defined in
<unistd.h>, so it needs both headers.
--- configure.orig 2006-02-25 00:08:32.000000000 +0100
+++ configure 2006-08-30 17:51:23.544802744 +0200
@@ -29861,11 +29861,10 @@ cat >>conftest.$ac_ext <<_ACEOF
extern "C" {
#if HAVE_GETOPT_H
#include <getopt.h>
- #else
+ #endif
#if HAVE_UNISTD_H
#include <unistd.h>
#endif
- #endif
}
int
main ()