diff options
Diffstat (limited to 'shmexport.c')
-rw-r--r-- | shmexport.c | 4 |
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; } |