summaryrefslogtreecommitdiff
path: root/net/amule/patches
diff options
context:
space:
mode:
authorrillig <rillig@pkgsrc.org>2005-03-16 19:06:10 +0000
committerrillig <rillig@pkgsrc.org>2005-03-16 19:06:10 +0000
commitbf035a1a6e2f97d672f0fb6e280567fa6fdde7ad (patch)
treeadcba53daf18afbe316f2e25a2bbf15af87d5ef0 /net/amule/patches
parent81a49b481b4088d8118550ac40196c631d63965f (diff)
downloadpkgsrc-bf035a1a6e2f97d672f0fb6e280567fa6fdde7ad.tar.gz
Added two patches for building on NetBSD-1.6.2 using gcc-2.95.3.
Approved by wiz.
Diffstat (limited to 'net/amule/patches')
-rw-r--r--net/amule/patches/patch-aa16
-rw-r--r--net/amule/patches/patch-ab21
2 files changed, 37 insertions, 0 deletions
diff --git a/net/amule/patches/patch-aa b/net/amule/patches/patch-aa
new file mode 100644
index 00000000000..9f4773d0771
--- /dev/null
+++ b/net/amule/patches/patch-aa
@@ -0,0 +1,16 @@
+$NetBSD: patch-aa,v 1.3 2005/03/16 19:06:10 rillig Exp $
+
+<net/if.h> requires <sys/socket.h>
+
+--- src/SysTray.cpp.orig Tue Mar 15 19:02:17 2005
++++ src/SysTray.cpp Tue Mar 15 19:01:55 2005
+@@ -23,6 +23,9 @@
+ #include "sys.h"
+ #include <libintl.h>
+ #include <clocale> // Needed for setlocale(3)
++#ifdef __NetBSD__
++# include <sys/socket.h>
++#endif
+ #include <net/if.h> // Needed for struct ifreq
+ #include <sys/socket.h> //
+ #include <netinet/in.h> // Needed for inet_ntoa
diff --git a/net/amule/patches/patch-ab b/net/amule/patches/patch-ab
new file mode 100644
index 00000000000..11652261fc4
--- /dev/null
+++ b/net/amule/patches/patch-ab
@@ -0,0 +1,21 @@
+$NetBSD: patch-ab,v 1.3 2005/03/16 19:06:10 rillig Exp $
+
+The C++ standard library headers sometimes include <_G_config.h>, which
+undefines the NULL macro and includes <stddef.h> afterwards. But if the
+<stddef.h> header had been included once before, the GNU C preprocessor
+doesn't include it a second time.
+
+--- src/sys.h.orig Sun Jun 13 17:37:06 2004
++++ src/sys.h Wed Mar 16 19:40:44 2005
+@@ -23,6 +23,11 @@
+ #ifndef SYS_H
+ #define SYS_H
+
++/* This is needed to have a NULL macro */
++#if defined(__NetBSD__) && defined(__GNUC__) && ((__GNUC__) < 3)
++# include <stl_config.h>
++#endif
++
+ //
+ // The build system forgets to add the correct CXXFLAGS (like for
+ // example -pthread for g++). Therefore define this here instead.