Mere inclusion of glib headers should not require you to define
any XYZ_SOURCE macros.
TEST_PROGS += once
once_LDADD = $(progs_ldadd)
+TEST_PROGS += cond
+cond_LDADD = $(progs_ldadd)
+
+#TEST_PROGS += include
+#include_LDADD = $(progs_ldadd)
+
# some testing of gtester funcitonality
XMLLINT=xmllint
gtester-xmllint-check: # check testreport xml with xmllint if present
--- /dev/null
+/* Test case for bug 659866 */
+
+#define _POSIX_C_SOURCE 0
+#undef _GNU_SOURCE
+#undef _XOPEN_SOURCE
+#include <pthread.h>
+#include <glib.h>
+
+int
+main (int argc, char *argv[])
+{
+ GRWLock lock;
+
+ g_rw_lock_init (&lock);
+
+ return 0;
+}