aboutsummaryrefslogtreecommitdiffstats
path: root/android
diff options
context:
space:
mode:
Diffstat (limited to 'android')
-rw-r--r--android/build/common.sh6
-rw-r--r--android/config/freebsd-x86/config-host.h13
-rw-r--r--android/utils/timezone.c4
3 files changed, 21 insertions, 2 deletions
diff --git a/android/build/common.sh b/android/build/common.sh
index 3f2c642..93ffba7 100644
--- a/android/build/common.sh
+++ b/android/build/common.sh
@@ -88,6 +88,9 @@ case "$OS" in
Linux)
# note that building 32-bit binaries on x86_64 is handled later
OS=linux-$CPU
+ ;;
+ FreeBSD)
+ OS=freebsd-$CPU
;;
CYGWIN*|*_NT-*)
OS=windows
@@ -123,6 +126,8 @@ case $OS in
;;
darwin-*) HOST_OS=darwin
;;
+ freebsd-*) HOST_OS=freebsd
+ ;;
*) HOST_OS=$OS
esac
@@ -161,6 +166,7 @@ force_32bit_binaries ()
case $OS in
linux-x86_64) OS=linux-x86 ;;
darwin-x86_64) OS=darwin-x86 ;;
+ freebsd-x86_64) OS=freebsd-x86 ;;
esac
HOST_ARCH=x86
CPU=x86
diff --git a/android/config/freebsd-x86/config-host.h b/android/config/freebsd-x86/config-host.h
new file mode 100644
index 0000000..8a08339
--- /dev/null
+++ b/android/config/freebsd-x86/config-host.h
@@ -0,0 +1,13 @@
+/* Automatically generated by configure - do not modify */
+#define CONFIG_QEMU_SHAREDIR "/usr/local/share/qemu"
+#define HOST_I386 1
+#define HOST_LONG_BITS 32
+#define CONFIG_GDBSTUB 1
+#define CONFIG_SLIRP 1
+#define CONFIG_OSS 1
+#define QEMU_VERSION "0.8.2"
+#define O_LARGEFILE 0
+#define MAP_ANONYMOUS MAP_ANON
+#define _BSD 1
+#define CONFIG_UNAME_RELEASE ""
+#define CONFIG_SKINS 1
diff --git a/android/utils/timezone.c b/android/utils/timezone.c
index b5588a3..f4b78db 100644
--- a/android/utils/timezone.c
+++ b/android/utils/timezone.c
@@ -96,7 +96,7 @@ bufprint_zoneinfo_timezone( char* p, char* end )
/* on OS X, the timezone directory is always /usr/share/zoneinfo
* this makes things easy.
*/
-#ifdef __APPLE__
+#if defined(__APPLE__)
#include <unistd.h>
#include <limits.h>
@@ -149,7 +149,7 @@ get_zoneinfo_timezone( void )
* the original timezone file. the only way to know which zoneinfo name to retrieve is to compare
* it with all files in $TZDIR (at least those that match Area/Location or Area/Location/SubLocation
*/
-#ifdef __linux__
+#if defined(__linux__) || defined (__FreeBSD__)
#include <unistd.h>
#include <limits.h>