summaryrefslogtreecommitdiff
path: root/devel/glib2/patches/patch-glib_tests_include.c
blob: 4c13836dc7e734fcf9c6fc4817e99ab57f3425e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$NetBSD: patch-glib_tests_include.c,v 1.1 2012/05/08 16:07:23 hans Exp $

SunOS requires _XOPEN_SOURCE etc. to be set correctly when compiling C99.

--- glib/tests/include.c.orig	2012-04-13 01:39:20.000000000 +0200
+++ glib/tests/include.c	2012-05-08 15:05:36.027464330 +0200
@@ -1,8 +1,10 @@
 /* Test case for bug 659866 */
 
+#ifndef __sun
 #define _POSIX_C_SOURCE 199309L
 #undef _GNU_SOURCE
 #undef _XOPEN_SOURCE
+#endif
 #include <pthread.h>
 #include <glib.h>