summaryrefslogtreecommitdiff
path: root/devel/glib2/patches
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2010-06-01 17:28:31 +0000
committerdrochner <drochner@pkgsrc.org>2010-06-01 17:28:31 +0000
commit663aec16cfb848d94e15d0e9fa6b62309203b3bc (patch)
treecef4146cccdbc06893a044eb90c072bec0a119ab /devel/glib2/patches
parentfb65d592aba6b3b8196083c8e0f980928855cf9f (diff)
downloadpkgsrc-663aec16cfb848d94e15d0e9fa6b62309203b3bc.tar.gz
fix 2 build errors:
-inconsistency of .hidden attributes, leading to link error on amd64, reported by Tobias Nygren -trick NetBSD's arpa/nameser_compat.h into using the system provided endianess definitions -- it has its own ifdefs but misses eg. ppc, fixes build error on macppc reported by Erik Bertelsen
Diffstat (limited to 'devel/glib2/patches')
-rw-r--r--devel/glib2/patches/patch-ce12
-rw-r--r--devel/glib2/patches/patch-cf14
2 files changed, 26 insertions, 0 deletions
diff --git a/devel/glib2/patches/patch-ce b/devel/glib2/patches/patch-ce
new file mode 100644
index 00000000000..552be10d426
--- /dev/null
+++ b/devel/glib2/patches/patch-ce
@@ -0,0 +1,12 @@
+$NetBSD: patch-ce,v 1.1 2010/06/01 17:28:31 drochner Exp $
+
+--- glib/gatomic-gcc.c.orig 2010-06-01 15:18:24.000000000 +0000
++++ glib/gatomic-gcc.c
+@@ -22,6 +22,7 @@
+
+ #include "glib.h"
+ #include "galias.h"
++#include "gthreadprivate.h"
+
+ gint
+ g_atomic_int_exchange_and_add (volatile gint G_GNUC_MAY_ALIAS *atomic,
diff --git a/devel/glib2/patches/patch-cf b/devel/glib2/patches/patch-cf
new file mode 100644
index 00000000000..68368a0e6f9
--- /dev/null
+++ b/devel/glib2/patches/patch-cf
@@ -0,0 +1,14 @@
+$NetBSD: patch-cf,v 1.1 2010/06/01 17:28:31 drochner Exp $
+
+--- gio/libasyncns/g-asyncns.h.orig 2010-06-01 15:28:52.000000000 +0000
++++ gio/libasyncns/g-asyncns.h
+@@ -27,6 +27,9 @@
+
+ /* asyncns.c removed this for #580301, but that appears to have been wrong */
+ #if HAVE_ARPA_NAMESER_COMPAT_H
++#ifdef __NetBSD__
++#include <sys/param.h>
++#endif
+ #include <arpa/nameser_compat.h>
+ #endif
+