summaryrefslogtreecommitdiff
path: root/gpsctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'gpsctl.c')
-rw-r--r--gpsctl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gpsctl.c b/gpsctl.c
index e14c1042..ff1ea6b7 100644
--- a/gpsctl.c
+++ b/gpsctl.c
@@ -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>