summaryrefslogtreecommitdiff
path: root/libgps_shm.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2016-08-15 18:33:36 -0700
committerGary E. Miller <gem@rellim.com>2016-08-15 18:33:36 -0700
commitb4715a222b1cc8a58b98203809be0f2c008bac47 (patch)
tree4ca8eee65e9c17b62beaf0d4f59796339315f7f2 /libgps_shm.c
parente9fdd7e827a5980c854df298e6cdb8667bfb180c (diff)
downloadgpsd-b4715a222b1cc8a58b98203809be0f2c008bac47.tar.gz
Fix a warning when C99 specified.
In file included from libgps_shm.c:27:0: /usr/include/sys/ipc.h:24:3: warning: #warning "Files using this header must be compiled with _GNU_SOURCE or _XOPEN_SOURCE" [-Wcpp] # warning "Files using this header must be compiled with _GNU_SOURCE or _XOPEN_S
Diffstat (limited to 'libgps_shm.c')
-rw-r--r--libgps_shm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libgps_shm.c b/libgps_shm.c
index 75aba8aa..d8e11f75 100644
--- a/libgps_shm.c
+++ b/libgps_shm.c
@@ -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 mean X/Open 1995 */
+#define _XOPEN_SOURCE 500
+
#include <time.h> /* for time_t */
#include "gpsd_config.h"