aboutsummaryrefslogtreecommitdiffstats
path: root/security/wpa_supplicant/files/patch-src_utils_os__unix.c
blob: 3feccd7f0b280ac2ca2b34a97d3063fdd8e97de8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
--- src/utils/os_unix.c.orig	2024-07-20 18:04:37 UTC
+++ src/utils/os_unix.c
@@ -103,9 +103,11 @@ int os_get_reltime(struct os_reltime *t)
 			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;