git: 8444b3642001 - stable/13 - time.h: Fix visibility check for C11 and C23 features.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 14 Sep 2023 15:00:35 UTC
The branch stable/13 has been updated by des: URL: https://cgit.FreeBSD.org/src/commit/?id=8444b3642001a915c1a22ea3cefbaaf0c54b2e85 commit 8444b3642001a915c1a22ea3cefbaaf0c54b2e85 Author: Dag-Erling Smørgrav <des@FreeBSD.org> AuthorDate: 2023-09-06 01:37:43 +0000 Commit: Dag-Erling Smørgrav <des@FreeBSD.org> CommitDate: 2023-09-14 14:59:52 +0000 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) --- include/time.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */