diff options
author | Cy Schubert <cy@FreeBSD.org> | 2024-06-02 05:23:30 +0000 |
---|---|---|
committer | Cy Schubert <cy@FreeBSD.org> | 2024-06-02 05:32:10 +0000 |
commit | 66318d0a56a837820885398a68c9a86a4dc13cd5 (patch) | |
tree | 3e18994a7a0c869403bfbee18dacbb3711dc0d10 /net | |
parent | c18ba8e8b5c9712d1775d73484087670e23ce9db (diff) | |
download | ports-66318d0a56a837820885398a68c9a86a4dc13cd5.tar.gz ports-66318d0a56a837820885398a68c9a86a4dc13cd5.zip |
net/hostapd: 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
Diffstat (limited to 'net')
-rw-r--r-- | net/hostapd/files/patch-src_utils_os__unix.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/net/hostapd/files/patch-src_utils_os__unix.c b/net/hostapd/files/patch-src_utils_os__unix.c new file mode 100644 index 000000000000..860682df6e05 --- /dev/null +++ b/net/hostapd/files/patch-src_utils_os__unix.c @@ -0,0 +1,15 @@ +--- src/utils/os_unix.c.orig 2022-01-16 12:51:29.000000000 -0800 ++++ src/utils/os_unix.c 2024-06-01 22:20:49.333716000 -0700 +@@ -103,10 +103,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; + } |