summaryrefslogtreecommitdiff
path: root/print/LPRng-core/patches/patch-ab
blob: a20e5a09faf962c868c416c005412607ec7030f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
$NetBSD: patch-ab,v 1.3 2005/12/29 13:46:16 joerg Exp $

--- configure.orig	2004-09-24 20:16:30.000000000 +0000
+++ configure
@@ -14590,6 +14590,7 @@ else
 cat >conftest.$ac_ext <<_ACEOF
 #line $LINENO "configure"
 #include "confdefs.h"
+#include <errno.h>
 
 #ifdef F77_DUMMY_MAIN
 #  ifdef __cplusplus
@@ -14600,7 +14601,7 @@ cat >conftest.$ac_ext <<_ACEOF
 int
 main ()
 {
-extern int errno; return (errno);
+  return (errno);
   ;
   return 0;
 }
@@ -14653,6 +14654,7 @@ else
 	#endif
 	#ifdef HAVE_ERRNO_H
 	#include <errno.h>
+	#endif
 
 #ifdef F77_DUMMY_MAIN
 #  ifdef __cplusplus