From 9fb87056bc09079710989f8a5b5118a8cf2e5d87 Mon Sep 17 00:00:00 2001 From: iphydf Date: Fri, 17 Aug 2018 12:42:30 +0000 Subject: [PATCH] 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. --- testing/misc_tools.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ #ifndef _POSIX_C_SOURCE // For nanosleep(). -#define _POSIX_C_SOURCE 199309L +#define _POSIX_C_SOURCE 200112L #endif #include "misc_tools.h"