pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11/gtk2 Don't define _XOPEN_SOURCE on SunOS when usin...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a986875e033e
branches:  trunk
changeset: 362729:a986875e033e
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Tue May 23 15:35:21 2017 +0000

description:
Don't define _XOPEN_SOURCE on SunOS when using >= C99.

diffstat:

 x11/gtk2/distinfo                                  |   3 ++-
 x11/gtk2/patches/patch-gtk_gtksearchenginesimple.c |  16 ++++++++++++++++
 2 files changed, 18 insertions(+), 1 deletions(-)

diffs (35 lines):

diff -r fcb8df9f3a86 -r a986875e033e x11/gtk2/distinfo
--- a/x11/gtk2/distinfo Tue May 23 15:12:57 2017 +0000
+++ b/x11/gtk2/distinfo Tue May 23 15:35:21 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.161 2016/09/13 13:45:52 prlw1 Exp $
+$NetBSD: distinfo,v 1.162 2017/05/23 15:35:21 jperkin Exp $
 
 SHA1 (gtk+-2.24.31.tar.xz) = c3d828135994a52cc9428a60175bd2b294656611
 RMD160 (gtk+-2.24.31.tar.xz) = 71feedd14b1a52eaa070a6cbf26d00e64d41de42
@@ -8,4 +8,5 @@
 SHA1 (patch-af) = d59414e24a7da7f8694dbefbd2f0c2c2b60ec5ad
 SHA1 (patch-aj) = 9887573ac7ade9e8f8ee2ead68e279f67836a1a3
 SHA1 (patch-gdk_x11_gdkwindow-x11.c) = 08c05b31da38e16727a2941cdec4c855f2fc7d77
+SHA1 (patch-gtk_gtksearchenginesimple.c) = 3c44b84f2e0d3f7cdfb594bf56370f588d165b14
 SHA1 (patch-gtk_gtktooltips.c) = 593e43bb0aacc0b07c24959f2ac6d84dfd04a780
diff -r fcb8df9f3a86 -r a986875e033e x11/gtk2/patches/patch-gtk_gtksearchenginesimple.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/x11/gtk2/patches/patch-gtk_gtksearchenginesimple.c        Tue May 23 15:35:21 2017 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-gtk_gtksearchenginesimple.c,v 1.1 2017/05/23 15:35:21 jperkin Exp $
+
+Don't define _XOPEN_SOURCE on SunOS when using >= C99.
+
+--- gtk/gtksearchenginesimple.c.orig   2015-12-28 15:42:28.000000000 +0000
++++ gtk/gtksearchenginesimple.c
+@@ -27,7 +27,9 @@
+  * export ftw() and friends only if _XOPEN_SOURCE and _GNU_SOURCE
+  * are defined. see bug #444097.
+  */
++#if !defined(__sun) || __STDC_VERSION__ - 0 < 199901L
+ #define _XOPEN_SOURCE 500
++#endif
+ #define _GNU_SOURCE 
+ 
+ #ifdef HAVE_FTW_H



Home | Main Index | Thread Index | Old Index