The branch main has been updated by brooks:

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

commit 2d92a5abefc9cf6aa81fb7d23f8fcca4f1d6026d
Author:     Brooks Davis <bro...@freebsd.org>
AuthorDate: 2025-06-11 16:39:02 +0000
Commit:     Brooks Davis <bro...@freebsd.org>
CommitDate: 2025-06-11 16:39:02 +0000

    Add sys/stdarg.h
    
    While the type of va_list and implementation of va_*() psuedo functions
    varies (sometimes greatly) by architecture, they will always be defined
    by the compiler in a consistant way that does not require machine
    dependent handling.
    
    MFC after:      1 week
    
    Reviewed by:    imp
    Exp-run by:     antoine (PR 286274)
    Pull Request:   https://github.com/freebsd/freebsd-src/pull/1595
---
 include/Makefile | 4 ++--
 sys/sys/stdarg.h | 6 ++++++
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/include/Makefile b/include/Makefile
index 09b16d1f029e..af7ef2337941 100644
--- a/include/Makefile
+++ b/include/Makefile
@@ -39,9 +39,9 @@ INCS= a.out.h ar.h assert.h bitstring.h byteswap.h \
 .PATH: ${SRCTOP}/contrib/libc-vis
 INCS+= vis.h
 
-MHDRS= float.h floatingpoint.h stdarg.h
+MHDRS= float.h floatingpoint.h
 
-PHDRS= _semaphore.h
+PHDRS= _semaphore.h stdarg.h
 
 LHDRS= aio.h errno.h fcntl.h linker_set.h poll.h stdatomic.h stdint.h \
        syslog.h ucontext.h
diff --git a/sys/sys/stdarg.h b/sys/sys/stdarg.h
new file mode 100644
index 000000000000..d9266d12c7e1
--- /dev/null
+++ b/sys/sys/stdarg.h
@@ -0,0 +1,6 @@
+#ifndef __SYS_STDARG_H__
+#define        __SYS_STDARG_H__
+
+#include <sys/_stdarg.h>
+
+#endif /* __SYS_STDARG_H__ */

Reply via email to