summaryrefslogtreecommitdiff
path: root/archivers/dar/patches/patch-ac
blob: 48943d8a49291cbed8badc52f736e6fcb0eccee3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$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 ()