diff options
author | tv <tv@pkgsrc.org> | 2005-11-08 19:25:12 +0000 |
---|---|---|
committer | tv <tv@pkgsrc.org> | 2005-11-08 19:25:12 +0000 |
commit | eee7d9e8973e61acd8cdef5809161f1bac8cf5ba (patch) | |
tree | 578885fc626754bce81282169adc3e5199bfc02c | |
parent | d0a2df6fd45cc1c2908138b19e6d667ee6605bf2 (diff) | |
download | pkgsrc-eee7d9e8973e61acd8cdef5809161f1bac8cf5ba.tar.gz |
Interix has unsetenv(3), but it has no prototype, so compilation fails
with -Werror. Fall through to setenv(..., "", 1) block instead by skipping
the HAVE_UNSETENV block.
-rw-r--r-- | print/LPRng-core/distinfo | 3 | ||||
-rw-r--r-- | print/LPRng-core/patches/patch-aa | 13 |
2 files changed, 15 insertions, 1 deletions
diff --git a/print/LPRng-core/distinfo b/print/LPRng-core/distinfo index a1e7e5faec8..f6b724bb77f 100644 --- a/print/LPRng-core/distinfo +++ b/print/LPRng-core/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.6 2005/02/24 12:51:41 agc Exp $ +$NetBSD: distinfo,v 1.7 2005/11/08 19:25:12 tv Exp $ SHA1 (LPRng-3.8.28.tgz) = f4373004adb1439819600701bb98517137daf1fc RMD160 (LPRng-3.8.28.tgz) = f0460d7fa7d1ea0ce6b49fcb656905fdda3d0d41 Size (LPRng-3.8.28.tgz) = 10212500 bytes +SHA1 (patch-aa) = a48d1bc4211e4938a9888fbd219f702dc1c84126 SHA1 (patch-ac) = 820629869ca4452886b5860de11a449a7b4603e9 diff --git a/print/LPRng-core/patches/patch-aa b/print/LPRng-core/patches/patch-aa new file mode 100644 index 00000000000..c18545bc007 --- /dev/null +++ b/print/LPRng-core/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.3 2005/11/08 19:25:12 tv Exp $ + +--- src/common/initialize.c.orig 2004-09-24 16:19:57.000000000 -0400 ++++ src/common/initialize.c +@@ -54,7 +54,7 @@ void Initialize(int argc, char *argv[], + * environment + */ + if( getuid() == ROOTUID || geteuid() == ROOTUID ){ +-#if defined(HAVE_UNSETENV) ++#if defined(HAVE_UNSETENV) && !defined(__INTERIX) + unsetenv("NLSPATH"); + #elif defined(HAVE_SETENV) + setenv("NLSPATH","",1); |