summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2018-08-17 12:42:30 +0000
committeriphydf <iphydf@users.noreply.github.com>2018-08-17 22:43:24 +0000
commit9fb87056bc09079710989f8a5b5118a8cf2e5d87 (patch)
tree70a157101781d4ce2f06e231f057b8ec2d133734 /testing
parentd6d305feeb76735ee4b4e14c6bca737a5482bc19 (diff)
Set `_POSIX_C_SOURCE` to 200112L. We need it for C99 compat.
It is invalid to compile an XPG3, XPG4, XPG4v2, or XPG5 application using c99. The same is true for POSIX.1-1990, POSIX.2-1992, POSIX.1b, and POSIX.1c applications. Likewise, it is invalid to compile an XPG6 or a POSIX.1-2001 application with anything other than a c99 or later compiler. Therefore, Solaris libc forces an error in both cases.
Diffstat (limited to 'testing')
-rw-r--r--testing/misc_tools.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/testing/misc_tools.c b/testing/misc_tools.c
index f039740d..af6f6872 100644
--- a/testing/misc_tools.c
+++ b/testing/misc_tools.c
@@ -27,7 +27,7 @@
27 27
28#ifndef _POSIX_C_SOURCE 28#ifndef _POSIX_C_SOURCE
29// For nanosleep(). 29// For nanosleep().
30#define _POSIX_C_SOURCE 199309L 30#define _POSIX_C_SOURCE 200112L
31#endif 31#endif
32 32
33#include "misc_tools.h" 33#include "misc_tools.h"