diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2014-08-18 04:01:05 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2014-08-18 04:01:05 -0400 |
commit | caf45e635c8a3f2446a19b77e7842030ec10d2de (patch) | |
tree | 409928dd76f6f96c9ef2e20e95c5b522e5b511c1 /libgps_shm.c | |
parent | 117b8c2fcc577ec6eb1730fb554c91ab081f2cf5 (diff) | |
download | gpsd-caf45e635c8a3f2446a19b77e7842030ec10d2de.tar.gz |
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 <samuel.cuella@supinfo.com>, but cleaned
up some to obey local conventions better.
All regression tests pass.
Diffstat (limited to 'libgps_shm.c')
-rw-r--r-- | libgps_shm.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/libgps_shm.c b/libgps_shm.c index 5f79aee2..c489af09 100644 --- a/libgps_shm.c +++ b/libgps_shm.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> @@ -25,8 +29,6 @@ PERMISSIONS #include "gpsd.h" #include "libgps.h" -#ifdef SHM_EXPORT_ENABLE - /*@-matchfields@*/ struct privdata_t { |