summaryrefslogtreecommitdiff
path: root/ntpshm.c
diff options
context:
space:
mode:
authorGary E. Miller <gem@rellim.com>2011-03-23 10:42:40 -0700
committerGary E. Miller <gem@rellim.com>2011-03-23 10:42:40 -0700
commit84c08315e2e04dd0ae11cfa4bbc218d017d29562 (patch)
treebab84f0b930fb445a82795d51bfb62d0f6e78467 /ntpshm.c
parent434a2b0d05f61f645633df4331f503f9d11af0b8 (diff)
downloadgpsd-84c08315e2e04dd0ae11cfa4bbc218d017d29562.tar.gz
Add missing include file needed for open().
A side effect of the recent PPS restructuring.
Diffstat (limited to 'ntpshm.c')
-rw-r--r--ntpshm.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/ntpshm.c b/ntpshm.c
index c27c7e76..1bcfa237 100644
--- a/ntpshm.c
+++ b/ntpshm.c
@@ -20,6 +20,10 @@
#endif /* S_SPLINT_S */
#include "gpsd.h"
+#if defined(HAVE_SYS_TIMEPPS_H)
+#include <fcntl.h> /* needed for open() and friends */
+#endif
+
#ifdef NTPSHM_ENABLE
#include <sys/time.h>
#include <sys/ipc.h>