summaryrefslogtreecommitdiff
path: root/shmexport.c
diff options
context:
space:
mode:
Diffstat (limited to 'shmexport.c')
-rw-r--r--shmexport.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/shmexport.c b/shmexport.c
index 3b764b57..f8645941 100644
--- a/shmexport.c
+++ b/shmexport.c
@@ -14,6 +14,10 @@ PERMISSIONS
BSD terms apply: see the file COPYING in the distribution root for details.
***************************************************************************/
+#include "gpsd_config.h"
+
+#ifdef SHM_EXPORT_ENABLE
+
#include <stddef.h>
#include <string.h>
#include <errno.h>
@@ -24,8 +28,6 @@ PERMISSIONS
#include "gpsd.h"
#include "libgps.h" /* for SHM_PSEUDO_FD */
-#ifdef SHM_EXPORT_ENABLE
-
/*@ -mustfreeonly -nullstate -mayaliasunique @*/
bool shm_acquire(struct gps_context_t *context)