--- a/src/posix/thread.c 2013-06-24 20:00:40.000000000 +0200 +++ b/src/posix/thread.c 2014-02-20 10:35:08.000000000 +0100 @@ -68,12 +68,16 @@ # define _POSIX_MONOTONIC_CLOCK (-1) #endif -#if (_POSIX_TIMERS > 0) +#if (_POSIX_TIMERS >= 0) static unsigned vlc_clock_prec; # if (_POSIX_MONOTONIC_CLOCK > 0) && (_POSIX_CLOCK_SELECTION > 0) /* Compile-time POSIX monotonic clock support */ +#ifdef __GNU__ /* FIXME: GNU/Hurd quirk */ +# define vlc_clock_id (CLOCK_REALTIME) +#else # define vlc_clock_id (CLOCK_MONOTONIC) +#endif # elif (_POSIX_MONOTONIC_CLOCK == 0) && (_POSIX_CLOCK_SELECTION > 0) /* Run-time POSIX monotonic clock support (see clock_setup() below) */ @@ -903,7 +907,7 @@ */ mtime_t mdate (void) { -#if (_POSIX_TIMERS > 0) +#if (_POSIX_TIMERS >= 0) struct timespec ts; vlc_clock_setup (); --- a/configure.ac 2013-12-07 17:16:19.000000000 +0100 +++ b/configure.ac 2014-02-19 14:41:38.000000000 +0100 @@ -122,6 +122,9 @@ netbsd*) SYS=netbsd ;; + gnu*) + SYS=hurd + ;; dragonfly*) SYS=dragonfly ;;