git: fc9d02cb29ed - main - libc: Add <time.h> C23 feature test macro

From: Faraz Vahedi <kfv_at_FreeBSD.org>
Date: Mon, 24 Aug 2026 13:49:56 UTC
The branch main has been updated by kfv:

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

commit fc9d02cb29ed8505eeb4f90348b7318ddcfae434
Author:     Faraz Vahedi <kfv@FreeBSD.org>
AuthorDate: 2026-08-24 13:47:15 +0000
Commit:     Faraz Vahedi <kfv@FreeBSD.org>
CommitDate: 2026-08-24 13:47:15 +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
---
 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>