Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F163240325
D45418.id139235.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
602 B
Referenced Files
None
Subscribers
None
D45418.id139235.diff
View Options
diff --git a/contrib/wpa/src/utils/os_unix.c b/contrib/wpa/src/utils/os_unix.c
--- a/contrib/wpa/src/utils/os_unix.c
+++ b/contrib/wpa/src/utils/os_unix.c
@@ -97,12 +97,12 @@
return 0;
}
switch (clock_id) {
-#ifdef CLOCK_BOOTTIME
+#if (defined(CLOCK_BOOTTIME) && defined(CLOCK_MONOTONIC)) && (CLOCK_MONOTONIC != CLOCK_BOOTTIME)
case CLOCK_BOOTTIME:
clock_id = CLOCK_MONOTONIC;
break;
#endif
-#ifdef CLOCK_MONOTONIC
+#if defined(CLOCK_MONOTONIC) && (!defined(CLOCK_BOOTTIME) || CLOCK_MONOTONIC != CLOCK_BOOTTIME)
case CLOCK_MONOTONIC:
clock_id = CLOCK_REALTIME;
break;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jul 22, 8:26 AM (1 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35356412
Default Alt Text
D45418.id139235.diff (602 B)
Attached To
Mode
D45418: WPA: Allow CLOCK_BOOTTIME and CLOCK_MONOTONIC to #define the same
Attached
Detach File
Event Timeline
Log In to Comment