diff options
author | Phil Blundell <philb@gnu.org> | 2009-05-21 15:57:09 +0100 |
---|---|---|
committer | Phil Blundell <philb@gnu.org> | 2009-05-21 15:57:09 +0100 |
commit | c16813c576d01baefd2c845ee00639b6d99959de (patch) | |
tree | ef304e68009e19cbd81a740ff62a7c0f99bb45df /recipes/snes9x/snes9x | |
parent | eca20211da63073e3a35dd1f647ef534662c4771 (diff) | |
download | openembedded-c16813c576d01baefd2c845ee00639b6d99959de.tar.gz |
snes9x: fix sundry compilation problems
Diffstat (limited to 'recipes/snes9x/snes9x')
-rw-r--r-- | recipes/snes9x/snes9x/configure.patch | 12 | ||||
-rw-r--r-- | recipes/snes9x/snes9x/linkage.patch | 31 |
2 files changed, 43 insertions, 0 deletions
diff --git a/recipes/snes9x/snes9x/configure.patch b/recipes/snes9x/snes9x/configure.patch new file mode 100644 index 0000000000..e9fb685399 --- /dev/null +++ b/recipes/snes9x/snes9x/configure.patch @@ -0,0 +1,12 @@ +--- configure 2009-05-21 15:48:14.000000000 +0100 ++++ configure 2009-05-21 15:48:14.000000000 +0100 +@@ -4474,9 +4474,6 @@ + LIBS="-lX11 -lXext" + SYSLIBS="$SYSLIBS -L$x_libraries -lX11 -lXext" + fi +-if test x$x_includes != x ; then +- XINCLUDES="-I$x_includes" +-fi + echo $ac_n "checking for XDGAQueryVersion in -lXxf86dga""... $ac_c" 1>&6 + echo "configure:4482: checking for XDGAQueryVersion in -lXxf86dga" >&5 + ac_lib_var=`echo Xxf86dga'_'XDGAQueryVersion | sed 'y%./+-%__p_%'` diff --git a/recipes/snes9x/snes9x/linkage.patch b/recipes/snes9x/snes9x/linkage.patch new file mode 100644 index 0000000000..cc007b5fe7 --- /dev/null +++ b/recipes/snes9x/snes9x/linkage.patch @@ -0,0 +1,31 @@ +--- ppu.h~ 2004-07-11 22:50:59.000000000 +0100 ++++ ppu.h 2009-05-21 15:54:06.000000000 +0100 +@@ -332,10 +332,14 @@ + uint8 _5A22; + } SnesModel; + ++START_EXTERN_C ++ + extern SnesModel* Model; + extern SnesModel M1SNES; + extern SnesModel M2SNES; + ++END_EXTERN_C ++ + #define MAX_5C77_VERSION 0x01 + #define MAX_5C78_VERSION 0x03 + #define MAX_5A22_VERSION 0x02 +--- dsp1.h~ 2004-07-11 22:50:57.000000000 +0100 ++++ dsp1.h 2009-05-21 15:53:46.000000000 +0100 +@@ -122,9 +122,10 @@ + void S9xResetDSP1 (); + uint8 S9xGetDSP (uint16 Address); + void S9xSetDSP (uint8 Byte, uint16 Address); +-END_EXTERN_C + + extern struct SDSP1 DSP1; + ++END_EXTERN_C ++ + #endif + |