summaryrefslogtreecommitdiff
path: root/devel/glib2/patches/patch-ch
blob: 82259b6280ed270829b6b7d7c808049c9bd28e7f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$NetBSD: patch-ch,v 1.1 2010/11/10 20:51:46 tez Exp $

Fix build on Solaris 10

--- glib/tests/strfuncs.c.orig	2010-11-10 12:28:34.624022400 -0600
+++ glib/tests/strfuncs.c	2010-11-10 12:29:38.527197100 -0600
@@ -19,7 +19,11 @@
  * if advised of the possibility of such damage.
  */
 
+#ifdef __sun
+#define _XOPEN_SOURCE 600
+#else
 #define _XOPEN_SOURCE
+#endif
 #include <ctype.h>
 #include <errno.h>
 #include <locale.h>