system/qemu-legacy: Patched for siginfo/info struct error

Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
David Woodfall 2013-11-18 21:57:45 -06:00 committed by Robby Workman
parent 3c68e64dc8
commit d6c291d706
2 changed files with 28 additions and 0 deletions

View file

@ -70,6 +70,9 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
# Fix the siginfo/info struct error
patch -p1 < $CWD/siginfo-typedef.patch
# For some reason it doesn't find SDL.h
CFLAGS="$SLKCFLAGS -I/usr/include/SDL" \
CXXFLAGS="$SLKCFLAGS" \

View file

@ -0,0 +1,25 @@
diff -Naur a/linux-user/signal.c b/linux-user/signal.c
--- a/linux-user/signal.c 2009-12-02 20:27:02.000000000 +0000
+++ b/linux-user/signal.c 2013-11-18 00:48:22.345001621 +0000
@@ -3059,6 +3059,10 @@
uint32_t tramp[2];
};
+// fix for 'incomplete type struct siginfo info' error
+typedef struct siginfo {
+} siginfo;
+
struct rt_signal_frame {
struct siginfo info;
struct ucontext uc;
@@ -3276,6 +3280,10 @@
uint8_t retcode[8]; /* Trampoline code. */
};
+// fix for 'incomplete type struct siginfo info' error
+typedef struct siginfo {
+} siginfo;
+
struct rt_signal_frame {
struct siginfo *pinfo;
void *puc;