summaryrefslogtreecommitdiff
path: root/libgps.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2006-12-16 06:19:04 +0000
committerEric S. Raymond <esr@thyrsus.com>2006-12-16 06:19:04 +0000
commitd12bdf251815c8081a1c6dcba5c2b670520f7f7f (patch)
tree39d5329a0695851a41b8188d9b12e8920f1f7b77 /libgps.c
parent205906011e2e91e6dbe5b5d9c6a026c9c5ff8e08 (diff)
downloadgpsd-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.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libgps.c b/libgps.c
index e289c704..a8023ff6 100644
--- a/libgps.c
+++ b/libgps.c
@@ -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
/*