summaryrefslogtreecommitdiff
path: root/shmexport.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-03-28 17:38:50 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-03-28 17:38:50 -0400
commit2807b4d18ae2a229c45e54f8423015c1ef8c371d (patch)
treef0d0ae43da483d0f4d79dd6bc51d14dcf6c6bd82 /shmexport.c
parent3ef6c8105785f5753813d251dfd397bec1537757 (diff)
downloadgpsd-2807b4d18ae2a229c45e54f8423015c1ef8c371d.tar.gz
Be extra careful about a USE_QT case.
Diffstat (limited to 'shmexport.c')
-rw-r--r--shmexport.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/shmexport.c b/shmexport.c
index bcd78821..8e2cf190 100644
--- a/shmexport.c
+++ b/shmexport.c
@@ -83,7 +83,11 @@ void shm_update(struct gps_context_t *context, struct gps_data_t *gpsdata)
(void *)gpsdata,
sizeof(struct gps_data_t));
barrier();
+#ifndef USE_QT
shared->gpsdata.gps_fd = -1;
+#else
+ shared->gpsdata.gps_fd = (void *)(intptr_t)-1;
+#endif /* USE_QT */
barrier();
shared->bookend1 = tick;
}