summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2016-08-15 21:27:32 -0700
committerGary E. Miller <gem@rellim.com>2016-08-15 21:27:32 -0700
commit87b7df35465772ee43e391e3c431f0bfd4bed634 (patch)
tree5483e1fc88170f1902960f311fce518ad09a3d9c
parentd01483e1832696992d8037d0508a0ba3eaa65eef (diff)
downloadgpsd-87b7df35465772ee43e391e3c431f0bfd4bed634.tar.gz
sys/ipc.h needs _XOPEN_SOURCE
-rw-r--r--ntpshmmon.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ntpshmmon.c b/ntpshmmon.c
index aa89806b..f8768a35 100644
--- a/ntpshmmon.c
+++ b/ntpshmmon.c
@@ -4,6 +4,10 @@
* 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 <stdio.h>
#include <string.h> /* for memset() */
#include <stdlib.h>