ports/net/hostapd29/files/patch-src_utils_os__unix.c
Cy Schubert d346a6842a net/hostapd29: Fix 15-CURRENT 108de784513d build
On FreeBSD systems without 108de784513d the old definition will be used
while on 108de784513d and newer the duplicate case will be removed.

Obtained from:	src 676041c41ba5
Discussed with:	imp
2024-06-01 22:32:25 -07:00

15 lines
384 B
C

--- src/utils/os_unix.c.orig 2024-06-01 22:24:31.970700000 -0700
+++ src/utils/os_unix.c 2024-06-01 22:25:35.160514000 -0700
@@ -97,10 +97,12 @@
break;
#endif
#ifdef CLOCK_MONOTONIC
+#if !(defined(CLOCK_BOOTTIME) && CLOCK_BOOTTIME == CLOCK_MONOTONIC)
case CLOCK_MONOTONIC:
clock_id = CLOCK_REALTIME;
break;
#endif
+#endif
case CLOCK_REALTIME:
return -1;
}