diff options
Diffstat (limited to 'unmaintained/dosbox/pic-fix.patch')
-rw-r--r-- | unmaintained/dosbox/pic-fix.patch | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/unmaintained/dosbox/pic-fix.patch b/unmaintained/dosbox/pic-fix.patch new file mode 100644 index 0000000000..74d26ff441 --- /dev/null +++ b/unmaintained/dosbox/pic-fix.patch @@ -0,0 +1,35 @@ +diff --exclude '*.*o' -ru dosbox-0.74.orig/include/dos_inc.h dosbox-0.74/include/dos_inc.h +--- dosbox-0.74.orig/include/dos_inc.h 2010-05-10 20:43:54.000000000 -0300 ++++ dosbox-0.74/include/dos_inc.h 2014-07-17 11:00:44.418771087 -0300 +@@ -21,6 +21,7 @@ + #ifndef DOSBOX_DOS_INC_H + #define DOSBOX_DOS_INC_H + ++#include <stddef.h> + #ifndef DOSBOX_DOS_SYSTEM_H + #include "dos_system.h" + #endif +diff --exclude '*.*o' -ru dosbox-0.74.orig/src/cpu/core_dyn_x86/risc_x86.h dosbox-0.74/src/cpu/core_dyn_x86/risc_x86.h +--- dosbox-0.74.orig/src/cpu/core_dyn_x86/risc_x86.h 2010-05-10 20:43:54.000000000 -0300 ++++ dosbox-0.74/src/cpu/core_dyn_x86/risc_x86.h 2014-07-17 11:00:12.432277706 -0300 +@@ -112,7 +112,7 @@ + pop ebx + mov [retval],eax + } +-#elif defined (MACOSX) ++#elif defined (MACOSX) || defined (__PIC__) + register Bit32u tempflags=reg_flags & FMASK_TEST; + __asm__ volatile ( + "pushl %%ebx \n" +diff --exclude '*.*o' -ru dosbox-0.74.orig/src/cpu/cpu.cpp dosbox-0.74/src/cpu/cpu.cpp +--- dosbox-0.74.orig/src/cpu/cpu.cpp 2010-05-12 12:57:31.000000000 -0300 ++++ dosbox-0.74/src/cpu/cpu.cpp 2014-07-17 10:57:04.226630637 -0300 +@@ -19,6 +19,7 @@ + /* $Id: cpu.cpp,v 1.116 2009-03-16 18:10:08 c2woody Exp $ */ + + #include <assert.h> ++#include <stddef.h> + #include <sstream> + #include "dosbox.h" + #include "cpu.h" + |