Skip to content

Commit

Permalink
Set _POSIX_C_SOURCE to 200112L. We need it for C99 compat.
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
iphydf committed Aug 17, 2018
1 parent 31ea1aa commit 3b8c934
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testing/misc_tools.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 3b8c934

Please sign in to comment.