diff options
author | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2013-02-20 16:04:01 +0100 |
---|---|---|
committer | Sebastian Dröge <sebastian.droege@collabora.co.uk> | 2013-02-20 16:04:01 +0100 |
commit | f70e6874119ba3fc3e8db1bbbc2efab181f7b573 (patch) | |
tree | 72b1ef7bcac6799ce7997f40ffc877cc4b8af543 /configure.ac | |
parent | 6597e084d9b9524ab199fb3019fa307b6588fd88 (diff) |
Fix build on Android
Android doesn't have a libpthread and includes all relevant functions
in libc.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 00e1916..114a602 100644 --- a/configure.ac +++ b/configure.ac @@ -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= |