]> Savannah Git Hosting - gnulib.git/commitdiff
signal_h: Fix Android build
authorKevin Cernekee <cernekee@google.com>
Wed, 11 Feb 2015 23:22:57 +0000 (15:22 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 11 Feb 2015 23:47:46 +0000 (15:47 -0800)
* lib/signal.in.h: Add Android to the list of platforms that declare
pthread_sigmask() in <pthread.h> instead of <signal.h>.

ChangeLog
lib/signal.in.h

index 7edb7276290cc7b0aa8b70f1a73c90a9588e855d..d74ae320d52e00cc93323fd72e704faa931dac31 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
        * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
        struct if_nameindex.  If not, enable the replacement header.
 
+       signal_h: Fix Android build
+       * lib/signal.in.h: Add Android to the list of platforms that declare
+       pthread_sigmask() in <pthread.h> instead of <signal.h>.
+
 2015-02-08  Daiki Ueno  <ueno@gnu.org>
 
        uniname/unimame-tests: don't link with -lunistring
index 0f2ff5af8435a9a8928f4070a64a8148435fad6d..265b72ab0ec5fbff87cd210dc89fe8ff570cc8f5 100644 (file)
 #ifndef _@GUARD_PREFIX@_SIGNAL_H
 #define _@GUARD_PREFIX@_SIGNAL_H
 
-/* Mac OS X 10.3, FreeBSD 6.4, OpenBSD 3.8, OSF/1 4.0, Solaris 2.6 declare
-   pthread_sigmask in <pthread.h>, not in <signal.h>.
+/* Mac OS X 10.3, FreeBSD 6.4, OpenBSD 3.8, OSF/1 4.0, Solaris 2.6, Android
+   declare pthread_sigmask in <pthread.h>, not in <signal.h>.
    But avoid namespace pollution on glibc systems.*/
 #if (@GNULIB_PTHREAD_SIGMASK@ || defined GNULIB_POSIXCHECK) \
-    && ((defined __APPLE__ && defined __MACH__) || defined __FreeBSD__ || defined __OpenBSD__ || defined __osf__ || defined __sun) \
+    && ((defined __APPLE__ && defined __MACH__) \
+        || defined __FreeBSD__ || defined __OpenBSD__ || defined __osf__ \
+        || defined __sun || defined __ANDROID__) \
     && ! defined __GLIBC__
 # include <pthread.h>
 #endif