aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/dosbox/pic-fix.patch
blob: 74d26ff441abb80e09ec21ed541adf9bf3e282c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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"