diff options
author | drochner <drochner@pkgsrc.org> | 2012-02-24 19:11:44 +0000 |
---|---|---|
committer | drochner <drochner@pkgsrc.org> | 2012-02-24 19:11:44 +0000 |
commit | ebbedbad7de42dc8a71ec1925282775f7a3b00f4 (patch) | |
tree | b574021953db661bd4b4b0cbc1809750ff9a3975 /x11/gnome-control-center | |
parent | d1ac60372b686bf3c9564ab9727cea175ce25829 (diff) | |
download | pkgsrc-ebbedbad7de42dc8a71ec1925282775f7a3b00f4.tar.gz |
give g_open 3 arguments as the documentation says; fixes build error
after the recent glib2 fix, from Patrick Welche per PM
Diffstat (limited to 'x11/gnome-control-center')
-rw-r--r-- | x11/gnome-control-center/distinfo | 3 | ||||
-rw-r--r-- | x11/gnome-control-center/patches/patch-capplets_common_gtkrc-utils.c | 24 |
2 files changed, 26 insertions, 1 deletions
diff --git a/x11/gnome-control-center/distinfo b/x11/gnome-control-center/distinfo index 3c1ca98a7fd..8d2ae1a5e48 100644 --- a/x11/gnome-control-center/distinfo +++ b/x11/gnome-control-center/distinfo @@ -1,6 +1,7 @@ -$NetBSD: distinfo,v 1.12 2010/11/24 20:52:41 drochner Exp $ +$NetBSD: distinfo,v 1.13 2012/02/24 19:11:44 drochner Exp $ SHA1 (gnome-control-center-2.32.1.tar.bz2) = 1e5ba3117aba7f939de25dbed13e430b90968561 RMD160 (gnome-control-center-2.32.1.tar.bz2) = 47515f3f96d5695b457a8363bac183fb2188a256 Size (gnome-control-center-2.32.1.tar.bz2) = 2280217 bytes SHA1 (patch-ad) = e2e1a71fff8e59d36b47ff28f994321e9eb5c60f +SHA1 (patch-capplets_common_gtkrc-utils.c) = 7691bdd419a4cdf05c9e2da4dbdc3d56a04700bf diff --git a/x11/gnome-control-center/patches/patch-capplets_common_gtkrc-utils.c b/x11/gnome-control-center/patches/patch-capplets_common_gtkrc-utils.c new file mode 100644 index 00000000000..328a7fe8637 --- /dev/null +++ b/x11/gnome-control-center/patches/patch-capplets_common_gtkrc-utils.c @@ -0,0 +1,24 @@ +$NetBSD: patch-capplets_common_gtkrc-utils.c,v 1.1 2012/02/24 19:11:44 drochner Exp $ + +g_open is not a synonym for open and takes 3 arguments. + +--- capplets/common/gtkrc-utils.c.orig 2010-11-18 09:05:08.000000000 +0000 ++++ capplets/common/gtkrc-utils.c +@@ -105,7 +105,7 @@ gtkrc_get_details (gchar *filename, GSLi + + read_files = g_slist_prepend (read_files, filename); + +- file = g_open (filename, O_RDONLY); ++ file = g_open (filename, O_RDONLY, 0); + if (file == -1) + { + g_warning ("Could not open file \"%s\"", filename); +@@ -200,7 +200,7 @@ gtkrc_get_color_scheme (const gchar *gtk + + read_files = g_slist_prepend (read_files, filename); + +- file = g_open (filename, O_RDONLY); ++ file = g_open (filename, O_RDONLY, 0); + if (file == -1) + { + g_warning ("Could not open file \"%s\"", filename); |