Source: gpsd
Version: 3.0.2-1
Severity: important
Tags: patch
Usertags: hurd
User: debian-h...@lists.debian.org

Hello,

The attached patch fixes the FTBFS problem with the GNU/Hurd build. Both
Apple OS X and Hurd defines __MACH__ but only Apple has the header files
included. The correct test is
#if defined (__APPLE__) && defined(__MACH__)

Thanks!
--- a/clock_gettime.c.orig	2015-10-08 11:20:51.000000000 +0200
+++ b/clock_gettime.c	2015-10-08 11:27:02.000000000 +0200
@@ -9,7 +9,7 @@
 
 #include "compiler.h"
 
-#ifdef __MACH__
+#if defined (__APPLE__) && defined(__MACH__) 
 #include <mach/clock.h>
 #include <mach/mach.h>
 #endif

Reply via email to