git: 71649bb9f522 - stable/15 - libc: Add <time.h> C23 feature test macro

From: Faraz Vahedi <kfv_at_FreeBSD.org>
Date: Sat, 31 Oct 2026 10:06:43 UTC
The branch stable/15 has been updated by kfv:

URL: https://cgit.FreeBSD.org/src/commit/?id=71649bb9f522de06266c88df7529c2c072c92395

commit 71649bb9f522de06266c88df7529c2c072c92395
Author:     Faraz Vahedi <kfv@FreeBSD.org>
AuthorDate: 2026-08-24 13:47:15 +0000
Commit:     Faraz Vahedi <kfv@FreeBSD.org>
CommitDate: 2026-10-31 10:03:34 +0000

    libc: Add <time.h> C23 feature test macro
    
    Define the __STDC_VERSION_TIME_H__ feature test macro as the
    header fully conforms to C23.
    
    Reviewed by:    fuz
    Approved by:    fuz (mentor)
    MFC after:      1 month
    Differential Revision:  https://reviews.freebsd.org/D59134
    
    (cherry picked from commit fc9d02cb29ed8505eeb4f90348b7318ddcfae434)
---
 include/time.h | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/include/time.h b/include/time.h
index 295df3b5790a..fed2805e03f1 100644
--- a/include/time.h
+++ b/include/time.h
@@ -34,12 +34,11 @@
  * SUCH DAMAGE.
  */
 
-/*
- */
-
 #ifndef _TIME_H_
 #define	_TIME_H_
 
+#define __STDC_VERSION_TIME_H__	202311L
+
 #include <sys/cdefs.h>
 #include <sys/_null.h>
 #include <sys/_types.h>