summaryrefslogtreecommitdiff
path: root/devel/glib2/patches
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2012-02-16 15:09:54 +0000
committerdrochner <drochner@pkgsrc.org>2012-02-16 15:09:54 +0000
commit9ee0642cd47059b678c489fb14ad8bba02c020d7 (patch)
treeeed0144afd054a9971b4210ede603c092812da72 /devel/glib2/patches
parentcfa33ca2f81224ebd6ef6c8c1d4d7981a4640254 (diff)
downloadpkgsrc-9ee0642cd47059b678c489fb14ad8bba02c020d7.tar.gz
open(2) is variadic (at least in Posix and NetBSD), g_open is not,
don't mix them, the ABIs are incompatible at least on amd64 bump PKGREV
Diffstat (limited to 'devel/glib2/patches')
-rw-r--r--devel/glib2/patches/patch-at25
1 files changed, 25 insertions, 0 deletions
diff --git a/devel/glib2/patches/patch-at b/devel/glib2/patches/patch-at
new file mode 100644
index 00000000000..1287d0cb064
--- /dev/null
+++ b/devel/glib2/patches/patch-at
@@ -0,0 +1,25 @@
+$NetBSD: patch-at,v 1.1 2012/02/16 15:09:54 drochner Exp $
+
+open() can be variadic, the ABI is incompatible eg. on amd64
+
+--- glib/gstdio.h.orig 2011-08-29 18:29:04.000000000 +0000
++++ glib/gstdio.h
+@@ -62,7 +62,6 @@ typedef struct stat GStatBuf;
+
+ #ifndef __GTK_DOC_IGNORE__
+ #define g_chmod chmod
+-#define g_open open
+ #define g_creat creat
+ #define g_rename rename
+ #define g_mkdir mkdir
+@@ -77,6 +76,10 @@ typedef struct stat GStatBuf;
+ int g_access (const gchar *filename,
+ int mode);
+
++int g_open (const gchar *filename,
++ int flags,
++ int mode);
++
+ int g_chdir (const gchar *path);
+
+ int g_unlink (const gchar *filename);