summaryrefslogtreecommitdiff
path: root/gpsd.c
diff options
context:
space:
mode:
authorBernd Zeimetz <bernd@bzed.de>2014-01-27 22:11:20 +0100
committerBernd Zeimetz <bernd@bzed.de>2014-01-27 22:11:20 +0100
commitf2753b6728b1857fa78cc0695cce7dc819db5c51 (patch)
treeee3605b2220f4ad809dcf8785d8e05ae7d223845 /gpsd.c
parenta2cc01dfe71391c16020b1b982d7b6627b301ee5 (diff)
downloadgpsd-f2753b6728b1857fa78cc0695cce7dc819db5c51.tar.gz
Make gpsd build on hurd again.
IPV6_TCLASS is not defined in socket.h on hurd.
Diffstat (limited to 'gpsd.c')
-rw-r--r--gpsd.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gpsd.c b/gpsd.c
index a3c2746c..a3c68236 100644
--- a/gpsd.c
+++ b/gpsd.c
@@ -149,6 +149,14 @@ static struct gps_context_t context;
static int sd_socket_count = 0;
#endif
+/* work around the unfinished ipv6 implementation on hurd */
+#ifdef __GNU__
+#ifndef IPV6_TCLASS
+#define IPV6_TCLASS 67
+#endif
+#endif
+
+
static volatile sig_atomic_t signalled;
static void onsig(int sig)