]> xenbits.xensource.com Git - unikraft/libs/musl.git/commitdiff
Add patch to remove syscall prototype in unistd.h
authorGaulthier Gain <gaulthier.gain@uliege.be>
Wed, 29 Jan 2020 21:18:31 +0000 (22:18 +0100)
committerSimon Kuenzer <simon.kuenzer@neclab.eu>
Thu, 30 Jan 2020 20:55:56 +0000 (21:55 +0100)
This patch removes the long syscall(long, ...) prototype which
conflicts with Unikraft's syscall_shim layer macros.

Signed-off-by: Gaulthier Gain <gaulthier.gain@uliege.be>
Reviewed-by: Simon Kuenzer <simon.kuenzer@neclab.eu>
patches/0001-Remove-prototype-for-syscall-from-unistd.h.patch [new file with mode: 0644]

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 (file)
index 0000000..d606afc
--- /dev/null
@@ -0,0 +1,26 @@
+From 64fc9d1ed189b546903e477b533cc73b8aa23187 Mon Sep 17 00:00:00 2001
+From: Gaulthier Gain <gaulthier.gain@uliege.be>
+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 <gaulthier.gain@uliege.be>
+---
+ 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