diff options
author | Felix Fietkau <nbd@openwrt.org> | 2009-06-14 20:42:33 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2009-06-14 20:42:33 +0000 |
commit | 2d5f80251c73e1e44c8fdd047ef49dbe051d65aa (patch) | |
tree | 74597f2d6eef2e7a6d6338c978b8910f9f947151 /package/goldfish-qemu/patches/100-darwin_fix.patch | |
parent | 157a4ab64660aaca2dd51fa4f82239d3738a1dff (diff) | |
download | master-187ad058-2d5f80251c73e1e44c8fdd047ef49dbe051d65aa.tar.gz master-187ad058-2d5f80251c73e1e44c8fdd047ef49dbe051d65aa.tar.bz2 master-187ad058-2d5f80251c73e1e44c8fdd047ef49dbe051d65aa.zip |
add the 'goldfish' target, useful for experimenting with virtual phone hardware (includes the emulator)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@16459 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/goldfish-qemu/patches/100-darwin_fix.patch')
-rw-r--r-- | package/goldfish-qemu/patches/100-darwin_fix.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/package/goldfish-qemu/patches/100-darwin_fix.patch b/package/goldfish-qemu/patches/100-darwin_fix.patch new file mode 100644 index 0000000000..a5f56b3cf4 --- /dev/null +++ b/package/goldfish-qemu/patches/100-darwin_fix.patch @@ -0,0 +1,30 @@ +--- a/android-configure.sh ++++ b/android-configure.sh +@@ -656,6 +656,9 @@ case "$CPU" in + *) HOST_CPU=$CPU + ;; + esac ++case "$OS" in ++ darwin*) echo "#define _BSD 1" >> $config_h;; ++esac + echo "#define HOST_$HOST_CPU 1" >> $config_h + log "Generate : $config_h" + +--- a/android/utils/display-quartz.m ++++ b/android/utils/display-quartz.m +@@ -34,6 +34,7 @@ get_monitor_resolution( int *px_dpi, in + int + get_nearest_monitor_rect( int *x, int *y, int *width, int *height ) + { ++#if 0 + SDL_SysWMinfo info; + NSWindow* window; + +@@ -108,4 +109,7 @@ get_nearest_monitor_rect( int *x, int + } + return 0; + } ++#else ++ return -1; ++#endif + }; |