aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/utils/compat/android.h
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2015-11-13 15:46:27 +0100
committerTobias Brunner <tobias@strongswan.org>2015-11-13 18:24:45 +0100
commitef4279f2e5aa9881855ed608cb81062c3676f077 (patch)
treea26bdefc5ff700204dd7b800a849ef9c02d5716e /src/libstrongswan/utils/compat/android.h
parent1c1f71343178b35b68265b33093389625a7b2ed6 (diff)
downloadstrongswan-ef4279f2e5aa9881855ed608cb81062c3676f077.tar.bz2
strongswan-ef4279f2e5aa9881855ed608cb81062c3676f077.tar.xz
utils: Provide a fallback for sigwaitinfo() if needed
Apparently, not available on Mac OS X 10.10 Yosemite. We don't provide this on Windows.
Diffstat (limited to 'src/libstrongswan/utils/compat/android.h')
-rw-r--r--src/libstrongswan/utils/compat/android.h28
1 files changed, 0 insertions, 28 deletions
diff --git a/src/libstrongswan/utils/compat/android.h b/src/libstrongswan/utils/compat/android.h
index a9a1b13a5..b3ea9c475 100644
--- a/src/libstrongswan/utils/compat/android.h
+++ b/src/libstrongswan/utils/compat/android.h
@@ -21,8 +21,6 @@
#ifndef ANDROID_H_
#define ANDROID_H_
-#include <android/api-level.h>
-
/* stuff defined in AndroidConfig.h, which is included using the -include
* command-line option, thus cannot be undefined using -U CFLAGS options.
* the reason we have to undefine these flags in the first place, is that
@@ -30,30 +28,4 @@
* actually defined. */
#undef HAVE_BACKTRACE
-/* sigwaitinfo() is not defined up to this API level, provide a fallback */
-#if __ANDROID_API__ <= 21
-#include <errno.h>
-#include <signal.h>
-
-static inline int sigwaitinfo(const sigset_t *set, void *info)
-{
- int sig, err;
-
- if (info)
- { /* we don't replicate siginfo_t, which we don't use */
- errno = EINVAL;
- return -1;
- }
- err = sigwait(set, &sig);
- if (err != 0)
- {
- errno = err;
- sig = -1;
- }
- return sig;
-}
-#else
-#error Check availability of sigwaitinfo() in this API level
-#endif
-
#endif /** ANDROID_H_ @}*/