net/wpa_supplicant_gui: 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
This commit is contained in:
Cy Schubert 2024-06-08 22:18:41 -07:00
parent a3584f5c3a
commit 8930e017ab
2 changed files with 15 additions and 13 deletions

View File

@ -1,6 +1,6 @@
PORTNAME= wpa_supplicant_gui PORTNAME= wpa_supplicant_gui
DISTVERSION= 2.10 DISTVERSION= 2.10
PORTREVISION= 1 PORTREVISION= 2
CATEGORIES= net CATEGORIES= net
MASTER_SITES= https://w1.fi/releases/ \ MASTER_SITES= https://w1.fi/releases/ \
LOCAL/yuri/net/wpa_supplicant_gui/:icons LOCAL/yuri/net/wpa_supplicant_gui/:icons

View File

@ -1,13 +1,15 @@
--- src/utils/os_unix.c.orig 2015-09-27 19:02:05 UTC --- src/utils/os_unix.c.orig 2022-01-16 12:51:29.000000000 -0800
+++ src/utils/os_unix.c +++ src/utils/os_unix.c 2024-06-01 22:03:18.774245000 -0700
@@ -23,6 +23,10 @@ @@ -103,10 +103,12 @@
#include <mach/mach_time.h> break;
#endif /* __MACH__ */ #endif
#ifdef CLOCK_MONOTONIC
+#ifdef __FreeBSD__ +#if !(defined(CLOCK_BOOTTIME) && CLOCK_BOOTTIME == CLOCK_MONOTONIC)
+#define fdatasync fsync case CLOCK_MONOTONIC:
clock_id = CLOCK_REALTIME;
break;
#endif
+#endif +#endif
+ case CLOCK_REALTIME:
#include "os.h" return -1;
#include "common.h" }