Commit d2b7ee62 authored by Raphael Kubo da Costa's avatar Raphael Kubo da Costa Committed by Colin Walters

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.
parent fd8b01ea
/* Test case for bug 659866 */
#define _POSIX_C_SOURCE 0
#define _POSIX_C_SOURCE 199309L
#undef _GNU_SOURCE
#include <pthread.h>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment