X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=package%2Fgoldfish-qemu%2Fpatches%2F100-darwin_fix.patch;fp=package%2Fgoldfish-qemu%2Fpatches%2F100-darwin_fix.patch;h=a5f56b3cf4c5e99647ad1f334fb12fbccd09eda8;hb=f88360279f91387dc61725226ad38c3c95d3790a;hp=0000000000000000000000000000000000000000;hpb=a6d8f8be9e06c5ffb03f815c8c76ba743c64aa3d;p=openwrt%2Fstaging%2Fwigyori.git 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 + };