summaryrefslogtreecommitdiff
path: root/mail/ja-mh/patches
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2006-07-21 16:43:56 +0000
committerminskim <minskim@pkgsrc.org>2006-07-21 16:43:56 +0000
commitcdd376112bd009f8459108a7e1599bb9cd9fdb14 (patch)
tree11551a720b0f8cb3a024e82f4f89b42b6375ba66 /mail/ja-mh/patches
parentff3f0a0e476849cd2660fd522f852d52697b6c04 (diff)
downloadpkgsrc-cdd376112bd009f8459108a7e1599bb9cd9fdb14.tar.gz
Make this package build on Linux by conditionally removing conflicting
declarations.
Diffstat (limited to 'mail/ja-mh/patches')
-rw-r--r--mail/ja-mh/patches/patch-bj31
1 files changed, 31 insertions, 0 deletions
diff --git a/mail/ja-mh/patches/patch-bj b/mail/ja-mh/patches/patch-bj
new file mode 100644
index 00000000000..f041b522f02
--- /dev/null
+++ b/mail/ja-mh/patches/patch-bj
@@ -0,0 +1,31 @@
+$NetBSD: patch-bj,v 1.1 2006/07/21 16:43:57 minskim Exp $
+
+--- h/strings.h.orig 2001-04-02 10:35:24.000000000 +0000
++++ h/strings.h
+@@ -35,7 +35,7 @@
+ char *index ();
+ char *mktemp ();
+ char *rindex ();
+-#ifndef SPRINTFTYPE
++#if !defined(SPRINTFTYPE) && !defined(linux)
+ #ifndef ncr /* NCR compiler complains about re-declaration */
+ char *sprintf (); /* I guess this is the new standard */
+ #endif
+@@ -47,7 +47,7 @@ SPRINTFTYPE sprintf ();
+ char *strcat ();
+ int strcmp ();
+ char *strcpy ();
+-#ifndef hpux
++#if !defined(hpux) && !defined(linux)
+ int strlen ();
+ #endif
+ char *strncat ();
+@@ -55,7 +55,7 @@ int strncmp ();
+ char *strncpy ();
+ #endif
+
+-#if !defined(SVR4) && !defined(__386BSD__) && !defined(BSD44)
++#if !defined(SVR4) && !defined(__386BSD__) && !defined(BSD44) && !defined(linux)
+ char *getenv ();
+ char *calloc (), *malloc (), *realloc ();
+ #endif /* SVR4 */