found 951834 7.4.11-1
tags 951834 ftbfs
user 951834 debian-h...@lists.debian.org
usertags 951834 hurd kfreebsd
thanks

Hello,

Trying to build php7.4 for GNU/Hurd revealed that in addition of the
patch in this bug report, another one is needed and attached:
ext_standard_hrtime.h.patch.

Thanks!
Index: php7.4-7.4.11/ext/standard/hrtime.h
===================================================================
--- php7.4-7.4.11.orig/ext/standard/hrtime.h
+++ php7.4-7.4.11/ext/standard/hrtime.h
@@ -26,7 +26,10 @@
 #define PHP_HRTIME_PLATFORM_HPUX    0
 #define PHP_HRTIME_PLATFORM_AIX     0
 
-#if defined(_POSIX_TIMERS) && ((_POSIX_TIMERS > 0) || defined(__OpenBSD__)) && defined(_POSIX_MONOTONIC_CLOCK) && defined(CLOCK_MONOTONIC)
+#if defined(_POSIX_TIMERS) && \
+    ((_POSIX_TIMERS > 0) || defined(__OpenBSD__) || defined(__GNU__)) && \
+    defined(_POSIX_MONOTONIC_CLOCK) && \
+    defined(CLOCK_MONOTONIC)
 # undef  PHP_HRTIME_PLATFORM_POSIX
 # define PHP_HRTIME_PLATFORM_POSIX 1
 #elif defined(_WIN32) || defined(_WIN64)

Reply via email to