Skip to content

Commit

Permalink
sys/ipc.h needs XOPEN_SOURCE 500
Browse files Browse the repository at this point in the history
XOPEN_SOURCE 500 means X/Open 1995. Seems saef enough.
  • Loading branch information
garyemiller committed Aug 16, 2016
1 parent 9a4bd35 commit aca3818
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 1 deletion.
6 changes: 6 additions & 0 deletions gpsctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@
* BSD terms apply: see the file COPYING in the distribution root for details.
*
*/

/* sys/ipc.h needs _XOPEN_SOURCE, 500 means X/Open 1995 */
#define _XOPEN_SOURCE 500
/* pselect() needs _POSIX_C_SOURCE >= 200112L */
#define _POSIX_C_SOURCE 200112L

#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
Expand Down
2 changes: 1 addition & 1 deletion libgps_shm.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ PERMISSIONS
***************************************************************************/

/* sys/ipc.h needs _XOPEN_SOURCE, 500 mean X/Open 1995 */
/* sys/ipc.h needs _XOPEN_SOURCE, 500 means X/Open 1995 */
#define _XOPEN_SOURCE 500

#include <time.h> /* for time_t */
Expand Down
3 changes: 3 additions & 0 deletions ntpshmwrite.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
* see the file COPYING in the distribution root for details.
*/

/* sys/ipc.h needs _XOPEN_SOURCE, 500 means X/Open 1995 */
#define _XOPEN_SOURCE 500

#include <string.h>
#include <libgen.h>
#include <stdbool.h>
Expand Down
4 changes: 4 additions & 0 deletions shmexport.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@ PERMISSIONS
BSD terms apply: see the file COPYING in the distribution root for details.
***************************************************************************/

/* sys/ipc.h needs _XOPEN_SOURCE, 500 means X/Open 1995 */
#define _XOPEN_SOURCE 500

#include <time.h> /* for time_t */
#include "gpsd_config.h"

Expand Down

0 comments on commit aca3818

Please sign in to comment.