summaryrefslogtreecommitdiff
path: root/ntpshm.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2013-10-30 11:17:06 -0400
committerEric S. Raymond <esr@thyrsus.com>2013-10-30 11:17:06 -0400
commited99be6df93be541a66602d3f1b296f6c8f9797e (patch)
tree57494bc23c77967807e6c7d2c8cee6d5765d325d /ntpshm.c
parent9ade48462250c108fd7c2605faa0644348003c6a (diff)
downloadgpsd-ed99be6df93be541a66602d3f1b296f6c8f9797e.tar.gz
Re-enable compilation with ntpshm=no.
Diffstat (limited to 'ntpshm.c')
-rw-r--r--ntpshm.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/ntpshm.c b/ntpshm.c
index 4ccea3ed..5fe96af3 100644
--- a/ntpshm.c
+++ b/ntpshm.c
@@ -22,6 +22,8 @@
#endif /* S_SPLINT_S */
#include "gpsd.h"
+
+#ifdef NTPSHM_ENABLE
#include <sys/time.h>
#include <sys/ipc.h>
#include <sys/shm.h>
@@ -499,4 +501,5 @@ void ntpd_link_activate(struct gps_device_t *session)
}
}
+#endif /* NTPSHM_ENABLE */
/* end */