Fix build on Android
authorSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 20 Feb 2013 15:04:01 +0000 (16:04 +0100)
committerSebastian Dröge <sebastian.droege@collabora.co.uk>
Wed, 20 Feb 2013 15:04:01 +0000 (16:04 +0100)
Android doesn't have a libpthread and includes all relevant functions
in libc.

configure.ac

index 00e1916..114a602 100644 (file)
@@ -109,6 +109,11 @@ case "${host_os}" in
   mingw*|pw32*|cygwin*)
     AC_DEFINE(HAVE_THREAD_WIN32, 1, [Use Windows thread code])
     ;;
+  *android*)
+    AC_DEFINE(HAVE_THREAD_PTHREAD, 1, [Use pthread thread code])
+    PTHREAD_CFLAGS=
+    PTHREAD_LIBS=
+    ;;
   *)
     AC_DEFINE(HAVE_THREAD_PTHREAD, 1, [Use pthread thread code])
     PTHREAD_CFLAGS=