diff options
Diffstat (limited to 'system/qemu-legacy')
-rw-r--r-- | system/qemu-legacy/qemu-legacy.SlackBuild | 3 | ||||
-rw-r--r-- | system/qemu-legacy/siginfo-typedef.patch | 25 |
2 files changed, 28 insertions, 0 deletions
diff --git a/system/qemu-legacy/qemu-legacy.SlackBuild b/system/qemu-legacy/qemu-legacy.SlackBuild index 720be0bb1a89..649b0986ba18 100644 --- a/system/qemu-legacy/qemu-legacy.SlackBuild +++ b/system/qemu-legacy/qemu-legacy.SlackBuild @@ -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" \ diff --git a/system/qemu-legacy/siginfo-typedef.patch b/system/qemu-legacy/siginfo-typedef.patch new file mode 100644 index 000000000000..9c3a455a6419 --- /dev/null +++ b/system/qemu-legacy/siginfo-typedef.patch @@ -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; |