summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorM Joonas Pihlaja <jpihlaja@cc.helsinki.fi>2009-08-31 16:25:08 +0300
committerM Joonas Pihlaja <jpihlaja@cc.helsinki.fi>2009-08-31 16:25:08 +0300
commitfeaf38d0cdc5a79966d3a412b644705b0f38e75a (patch)
tree4c56c2b548752ade3a1b11bf18fd372fc1d8f576 /test
parent9bb469c51cf580e3ae18b21b3847488e8c4be051 (diff)
[test] Use HAVE_FLOCKFILE instead of _POSIX_C_SOURCE.
The _POSIX_C_SOURCE 2001.. #define requires C99 mode and clang on Solaris is strict about such things. Use configure tests for flockfile() instead.
Diffstat (limited to 'test')
-rw-r--r--test/cairo-test.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/cairo-test.c b/test/cairo-test.c
index eeb8b6f6..7e93410f 100644
--- a/test/cairo-test.c
+++ b/test/cairo-test.c
@@ -26,7 +26,6 @@
*/
#define _GNU_SOURCE 1 /* for feenableexcept() et al */
-#define _POSIX_C_SOURCE 200112L /* for flockfile() et al */
#if HAVE_CONFIG_H
#include "config.h"
@@ -1646,7 +1645,7 @@ _cairo_test_context_run_for_target (cairo_test_context_t *ctx,
}
fflush (stdout);
} else {
-#if _POSIX_THREAD_SAFE_FUNCTIONS
+#if HAVE_FLOCKFILE && HAVE_FUNLOCKFILE
flockfile (stdout);
#endif
printf ("%s.%s.%s %d [%d]:\t",
@@ -1678,7 +1677,7 @@ _cairo_test_context_run_for_target (cairo_test_context_t *ctx,
}
fflush (stdout);
-#if _POSIX_THREAD_SAFE_FUNCTIONS
+#if HAVE_FLOCKFILE && HAVE_FUNLOCKFILE
funlockfile (stdout);
#endif
}