pkgsrc/print/LPRng-core/patches/patch-ab
joerg e880439d80 Fix errno deetection and use of the test results. Isn't it a lot better
when the conditional matches the variable name from the test case?
2005-12-29 13:46:16 +00:00

29 lines
588 B
Text

$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