+2015-05-31 Eric Botcazou <ebotcazou@adacore.com>
+
+ * s-oscons-tmplt.c: Add explicit tests for Android alongside Linux.
+
2015-05-30 Eric Botcazou <ebotcazou@adacore.com>
* adaint.c: Test for __linux__ instead of linux and __sun__ instead
** a number of non-POSIX but useful/required features.
**/
-#if defined (__linux__)
+#if defined (__linux__) || defined (__ANDROID__)
/* Define _XOPEN_SOURCE to get IOV_MAX */
# if !defined (_XOPEN_SOURCE)
# include <_types.h>
#endif
-#ifdef __linux__
+#if defined (__linux__) || defined (__ANDROID__)
# include <pthread.h>
# include <signal.h>
#endif
#endif
CND(MSG_NOSIGNAL, "No SIGPIPE on send")
-#ifdef __linux__
+#if defined (__linux__) || defined (__ANDROID__)
# define MSG_Forced_Flags "MSG_NOSIGNAL"
#else
# define MSG_Forced_Flags "0"
#define SIZEOF_struct_servent (sizeof (struct servent))
CND(SIZEOF_struct_servent, "struct servent")
-#if defined (__linux__)
+#if defined (__linux__) || defined (__ANDROID__)
#define SIZEOF_sigset (sizeof (sigset_t))
CND(SIZEOF_sigset, "sigset")
#endif
CNS(CLOCK_RT_Ada, "")
#endif
-#if defined (__APPLE__) || defined (__linux__) || defined (DUMMY)
+#if defined (__APPLE__) || defined (__linux__) || defined (__ANDROID__) \
+ || defined (DUMMY)
/*
-- Sizes of pthread data types
CND(PTHREAD_RWLOCK_SIZE, "pthread_rwlock_t")
CND(PTHREAD_ONCE_SIZE, "pthread_once_t")
-#endif /* __APPLE__ || __linux__ */
+#endif /* __APPLE__ || __linux__ || __ANDROID__ */
/*