diff options
author | jperkin <jperkin> | 2017-05-23 15:35:21 +0000 |
---|---|---|
committer | jperkin <jperkin> | 2017-05-23 15:35:21 +0000 |
commit | 75ace685b9c02f15bc792f8cdc47c42f164cc0b0 (patch) | |
tree | 6cb5f60b4fd135e73baa9faf0fde8c9db3cd4f92 | |
parent | 193f619a28a94d6414d34283f169e883b931e9a0 (diff) | |
download | pkgsrc-75ace685b9c02f15bc792f8cdc47c42f164cc0b0.tar.gz |
Don't define _XOPEN_SOURCE on SunOS when using >= C99.
-rw-r--r-- | x11/gtk2/distinfo | 3 | ||||
-rw-r--r-- | x11/gtk2/patches/patch-gtk_gtksearchenginesimple.c | 16 |
2 files changed, 18 insertions, 1 deletions
diff --git a/x11/gtk2/distinfo b/x11/gtk2/distinfo index 76c75c718f7..200b7e1d6a6 100644 --- a/x11/gtk2/distinfo +++ b/x11/gtk2/distinfo @@ -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-ab) = 9c82cc60f3825d377a197c876fcc6faa379cbde3 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 --git a/x11/gtk2/patches/patch-gtk_gtksearchenginesimple.c b/x11/gtk2/patches/patch-gtk_gtksearchenginesimple.c new file mode 100644 index 00000000000..f8752688e42 --- /dev/null +++ b/x11/gtk2/patches/patch-gtk_gtksearchenginesimple.c @@ -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 |