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.
This commit is contained in:
iphydf 2018-08-17 12:42:30 +00:00
parent d6d305feeb
commit 9fb87056bc
No known key found for this signature in database
GPG Key ID: 3855DBA2D74403C9

View File

@ -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"