[glib] Make the `include' glib test case build on FreeBSD.
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Make the `include' glib test case build on FreeBSD.
- Date: Thu, 22 Mar 2012 15:02:41 +0000 (UTC)
commit d2b7ee62f9d4df0aa5925ea123da7db6753d03ac
Author: Raphael Kubo da Costa <kubo profusion mobi>
Date: Mon Mar 19 14:20:08 2012 -0300
Make the `include' glib test case build on FreeBSD.
Defining _POSIX_C_SOURCE to 0 will make time.h not create the clockid_t
typedef used by some functions in pthread.h.
The right approach here is to set it to 199309L, which creates the
typedef on FreeBSD and doesn't set __USE_UNIX98 or __USE_XOPEN2K on
glibc, which is what the test is actually testing.
https://bugzilla.gnome.org/show_bug.cgi?id=672406
glib/tests/include.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/glib/tests/include.c b/glib/tests/include.c
index 754450c..0e8627b 100644
--- a/glib/tests/include.c
+++ b/glib/tests/include.c
@@ -1,6 +1,6 @@
/* Test case for bug 659866 */
-#define _POSIX_C_SOURCE 0
+#define _POSIX_C_SOURCE 199309L
#undef _GNU_SOURCE
#undef _XOPEN_SOURCE
#include <pthread.h>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]