Make the `include' glib test case build on FreeBSD.
authorRaphael Kubo da Costa <kubo@profusion.mobi>
Mon, 19 Mar 2012 17:20:08 +0000 (14:20 -0300)
committerColin Walters <walters@verbum.org>
Thu, 22 Mar 2012 15:02:07 +0000 (11:02 -0400)
commitd2b7ee62f9d4df0aa5925ea123da7db6753d03ac
treedfe1d6c136db28e6c324f1ec815355a20af341fe
parentfd8b01ead613788ad136cc61e1b744dfd811e0ec
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