mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
tools/nolibc: add stdarg.h header
This allows nolic to work with `-nostdinc` avoiding any reliance on system headers. The implementation has been lifted from musl libc 1.2.4. There is already an implementation of stdarg.h in include/linux/stdarg.h but that is GPL licensed and therefore not suitable for nolibc. The used compiler builtins have been validated to be at least available since GCC 4.1.2 and clang 3.0.0. Signed-off-by: Thomas Weißschuh <linux@weissschuh.net> Signed-off-by: Willy Tarreau <w@1wt.eu>
This commit is contained in:
@@ -7,7 +7,6 @@
|
||||
#ifndef _NOLIBC_SYS_H
|
||||
#define _NOLIBC_SYS_H
|
||||
|
||||
#include <stdarg.h>
|
||||
#include "std.h"
|
||||
|
||||
/* system includes */
|
||||
@@ -25,6 +24,7 @@
|
||||
|
||||
#include "arch.h"
|
||||
#include "errno.h"
|
||||
#include "stdarg.h"
|
||||
#include "types.h"
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user