1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-18 00:10:04 +00:00

security/wpa_supplicant29: 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
This commit is contained in:
Cy Schubert 2024-06-01 22:11:40 -07:00
parent 765936405a
commit 31c493f01d

View File

@ -0,0 +1,15 @@
--- src/utils/os_unix.c.orig 2019-08-07 06:25:25.000000000 -0700
+++ src/utils/os_unix.c 2024-06-01 22:07:44.791894000 -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;
}