Fix the build on Debian GNU/Hurd.
authorEmil Mikulic <emikulic@gmail.com>
Sat, 27 Dec 2014 15:27:13 +0000 (02:27 +1100)
committerEmil Mikulic <emikulic@gmail.com>
Sat, 27 Dec 2014 15:27:13 +0000 (02:27 +1100)
now.c

diff --git a/now.c b/now.c
index abfc370..b1a43cb 100644 (file)
--- a/now.c
+++ b/now.c
@@ -23,7 +23,8 @@
 #include <string.h>
 #include <time.h>
 
-#ifdef __MACH__  /* Fake up clock_gettime() on OS X. */
+#if defined(__MACH__) && !defined(__gnu_hurd__)
+/* Fake up clock_gettime() on OS X. */
 #  include <sys/time.h>
 #  include <inttypes.h>
 #  include <mach/mach.h>