diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2006-12-16 06:19:04 +0000 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2006-12-16 06:19:04 +0000 |
commit | d12bdf251815c8081a1c6dcba5c2b670520f7f7f (patch) | |
tree | 39d5329a0695851a41b8188d9b12e8920f1f7b77 /libgps.c | |
parent | 205906011e2e91e6dbe5b5d9c6a026c9c5ff8e08 (diff) | |
download | gpsd-d12bdf251815c8081a1c6dcba5c2b670520f7f7f.tar.gz |
Graceful degradation of the build if pthreads is not present.
This time for sure.
Diffstat (limited to 'libgps.c')
-rw-r--r-- | libgps.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -549,6 +549,7 @@ int gps_query(struct gps_data_t *gpsdata, const char *fmt, ... ) return gps_poll(gpsdata); } +#ifdef HAVE_LIBPTHREAD static void *poll_gpsd(void *args) /* helper for the thread launcher */ { @@ -600,6 +601,7 @@ int gps_del_callback(struct gps_data_t *gpsdata, pthread_t *handler) (void)gps_query(gpsdata,"w-\n"); /* disable watcher mode */ return res; } +#endif /* HAVE_LIBPTHREAD */ #ifdef TESTMAIN /* |