aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDag-Erling Smørgrav <des@FreeBSD.org>2023-09-06 01:37:43 +0000
committerDag-Erling Smørgrav <des@FreeBSD.org>2023-09-14 14:59:52 +0000
commit8444b3642001a915c1a22ea3cefbaaf0c54b2e85 (patch)
tree7b83618cfaafc31fffd89a0e46fcd74ac6b8ccb3
parente035e58097ae6e7fbdf4934c65752baf3f6ab7d3 (diff)
downloadsrc-8444b3642001a915c1a22ea3cefbaaf0c54b2e85.tar.gz
src-8444b3642001a915c1a22ea3cefbaaf0c54b2e85.zip
time.h: Fix visibility check for C11 and C23 features.
__BSD_VISIBLE is always defined; we need to check if it's true. Fixes: d02489d11aed 9b5d724cad10 MFC after: 3 days Reviewed by: brooks, imp Differential Revision: https://reviews.freebsd.org/D41733 (cherry picked from commit 8091b82e291642f3034dc3fdc8689a4f4ba027da)
-rw-r--r--include/time.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/time.h b/include/time.h
index 0a7877f3c7a1..45d3a253ed61 100644
--- a/include/time.h
+++ b/include/time.h
@@ -180,7 +180,7 @@ time_t posix2time(time_t t);
#include <xlocale/_time.h>
#endif
-#if defined(__BSD_VISIBLE) || __ISO_C_VISIBLE >= 2011 || \
+#if __BSD_VISIBLE || __ISO_C_VISIBLE >= 2011 || \
(defined(__cplusplus) && __cplusplus >= 201703)
#include <sys/_timespec.h>
/* ISO/IEC 9899:201x 7.27.2.5 The timespec_get function */