git: 8d1a813bf7c4 - stable/14 - wpa: Diff reduction with upstream

From: Cy Schubert <cy_at_FreeBSD.org>
Date: Tue, 13 Oct 2026 19:20:51 UTC
The branch stable/14 has been updated by cy:

URL: https://cgit.FreeBSD.org/src/commit/?id=8d1a813bf7c40bfe0a01152d75283568879f5c96

commit 8d1a813bf7c40bfe0a01152d75283568879f5c96
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2024-05-31 16:02:37 +0000
Commit:     Cy Schubert <cy@FreeBSD.org>
CommitDate: 2026-10-13 19:20:06 +0000

    wpa: Diff reduction with upstream
    
    I inadvertantly added gratuitous changes to upstream. Revert the
    gratuitous parts of 676041c41ba5
    
    Suggested by: cy
    Fixes: 676041c41ba5
    Sponsored by: Netflix
    (cherry picked from commit cab9ccf3ff8c5722dace61a814d791aeba2751c6)
---
 contrib/wpa/src/utils/os_unix.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/contrib/wpa/src/utils/os_unix.c b/contrib/wpa/src/utils/os_unix.c
index af6f59b695c4..15a05958c970 100644
--- a/contrib/wpa/src/utils/os_unix.c
+++ b/contrib/wpa/src/utils/os_unix.c
@@ -96,12 +96,12 @@ int os_get_reltime(struct os_reltime *t)
 			return 0;
 		}
 		switch (clock_id) {
-#if defined(CLOCK_BOOTTIME)
+#ifdef CLOCK_BOOTTIME
 		case CLOCK_BOOTTIME:
 			clock_id = CLOCK_MONOTONIC;
 			break;
 #endif
-#if defined(CLOCK_MONOTONIC)
+#ifdef CLOCK_MONOTONIC
 /*
  * FreeBSD has both BOOTTIME and MONOTONIC defined to the same value, since they
  * mean the same thing. FreeBSD 14.1 and ealier don't, so need this case.