Skip to content

Commit

Permalink
switch XOPEN_SOURCE => POSIX_C_SOURCE
Browse files Browse the repository at this point in the history
Defining _XOPEN_SOURCE 700 is equivalent to defining the more
self-explanatory _POSIX_C_SOURCE 200809L
  • Loading branch information
ltalirz authored and oschuett committed Apr 23, 2021
1 parent b85e6a7 commit a278c7a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/grid/grid_replay.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/*----------------------------------------------------------------------------*/

// needed for struct timespec
#define _XOPEN_SOURCE 700 /* Enable POSIX 2008/13 */
#define _POSIX_C_SOURCE 200809L

#include <assert.h>
#include <fenv.h>
Expand Down
2 changes: 1 addition & 1 deletion src/sockets.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
******************************************************************************/
#ifndef __NO_IPI_DRIVER

#define _XOPEN_SOURCE 700 /* Enable POSIX 2008/13 */
#define _POSIX_C_SOURCE 200809L

#include <math.h>
#include <netdb.h>
Expand Down
2 changes: 1 addition & 1 deletion tools/autotools/INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ Particular systems
is not installed, it is recommended to use the following options in
order to use an ANSI C compiler:

./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
./configure CC="cc -Ae -D_POSIX_C_SOURCE=200809L"

and if that doesn't work, install pre-built binaries of GCC for HP-UX.

Expand Down

0 comments on commit a278c7a

Please sign in to comment.