From caf45e635c8a3f2446a19b77e7842030ec10d2de Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Mon, 18 Aug 2014 04:01:05 -0400 Subject: First part of Android port patches: deal with in_port_t. SUN_LEN, and getsid(). Also, fix how configuratuin in libgps_shm.c and smexport.h is handled. Based on a patch by Samuel Cuella , but cleaned up some to obey local conventions better. All regression tests pass. --- shmexport.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'shmexport.c') 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 #include #include @@ -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) -- cgit v1.2.1