a9a1b13a59c284b9f43935ab508e0fd020f00912
2 * Copyright (C) 2010-2015 Tobias Brunner
3 * Hochschule fuer Technik Rapperswil
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the
7 * Free Software Foundation; either version 2 of the License, or (at your
8 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17 * @defgroup android android
24 #include <android/api-level.h>
26 /* stuff defined in AndroidConfig.h, which is included using the -include
27 * command-line option, thus cannot be undefined using -U CFLAGS options.
28 * the reason we have to undefine these flags in the first place, is that
29 * AndroidConfig.h defines them as 0, which in turn means that they are
30 * actually defined. */
33 /* sigwaitinfo() is not defined up to this API level, provide a fallback */
34 #if __ANDROID_API__ <= 21
38 static inline int sigwaitinfo(const sigset_t
*set
, void *info
)
43 { /* we don't replicate siginfo_t, which we don't use */
47 err
= sigwait(set
, &sig
);
56 #error Check availability of sigwaitinfo() in this API level
59 #endif /** ANDROID_H_ @}*/