mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 17:59:07 -04:00
30 lines
806 B
Plaintext
30 lines
806 B
Plaintext
$NetBSD: patch-gnats_configure,v 1.2 2013/12/01 23:27:11 bsiegert Exp $
|
|
|
|
Fix detection of unsetenv on MirBSD.
|
|
--- gnats/configure.orig Sun Mar 6 20:38:26 2005
|
|
+++ gnats/configure
|
|
@@ -4005,12 +4005,12 @@ _ACEOF
|
|
cat confdefs.h >>conftest.$ac_ext
|
|
cat >>conftest.$ac_ext <<_ACEOF
|
|
/* end confdefs.h. */
|
|
+const char *foo(const char *x) { return x; }
|
|
+int bar(const char *x) { return x == foo(x); }
|
|
|
|
int
|
|
main ()
|
|
{
|
|
-const char *foo(const char *x) { return x; }
|
|
- int bar(const char *x) { return x == foo(x); }
|
|
;
|
|
return 0;
|
|
}
|
|
@@ -4979,7 +4979,7 @@ cat >>conftest.$ac_ext <<_ACEOF
|
|
|
|
_ACEOF
|
|
if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
|
|
- $EGREP "\<unsetenv\>" >/dev/null 2>&1; then
|
|
+ $EGREP "unsetenv" >/dev/null 2>&1; then
|
|
|
|
cat >>confdefs.h <<\_ACEOF
|
|
#define HAVE_DECL_UNSETENV 1
|