From: Gaulthier Gain Date: Wed, 29 Jan 2020 21:18:31 +0000 (+0100) Subject: Add patch to remove syscall prototype in unistd.h X-Git-Tag: RELEASE-0.4~20 X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=be413b8b633d226ca9eb02363cd5e6e937d3b6de;p=unikraft%2Flibs%2Fmusl.git Add patch to remove syscall prototype in unistd.h This patch removes the long syscall(long, ...) prototype which conflicts with Unikraft's syscall_shim layer macros. Signed-off-by: Gaulthier Gain Reviewed-by: Simon Kuenzer --- diff --git a/patches/0001-Remove-prototype-for-syscall-from-unistd.h.patch b/patches/0001-Remove-prototype-for-syscall-from-unistd.h.patch new file mode 100644 index 0000000..d606afc --- /dev/null +++ b/patches/0001-Remove-prototype-for-syscall-from-unistd.h.patch @@ -0,0 +1,26 @@ +From 64fc9d1ed189b546903e477b533cc73b8aa23187 Mon Sep 17 00:00:00 2001 +From: Gaulthier Gain +Date: Thu, 17 Oct 2019 08:52:18 +0200 +Subject: [PATCH] Remove prototype for syscall from unistd.h + +With Unikraft shim layer, `syscall` is a macro and not a function. + +Signed-off-by: Gaulthier Gain +--- + include/unistd.h | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/include/unistd.h b/include/unistd.h +index 09190af4..6ee0f1f1 100644 +--- a/include/unistd.h ++++ b/include/unistd.h +@@ -173,7 +173,6 @@ void setusershell(void); + void endusershell(void); + char *getusershell(void); + int acct(const char *); +-long syscall(long, ...); + int execvpe(const char *, char *const [], char *const []); + int issetugid(void); + #endif +-- +2.23.0