summaryrefslogtreecommitdiff
path: root/ACE/ace/config-android.h
diff options
context:
space:
mode:
authorJohnny Willemsen <jwillemsen@remedy.nl>2018-11-07 18:25:08 +0100
committerJohnny Willemsen <jwillemsen@remedy.nl>2018-11-07 18:25:08 +0100
commitaeb6cb47d17fd0f39ae09c16ef981eec4b5bc5c1 (patch)
tree51f8dd58545fc8749ca488780dc04df516a871ef /ACE/ace/config-android.h
parent2202ba737ce1219d85cf538439ad9586b0bba168 (diff)
downloadATCD-aeb6cb47d17fd0f39ae09c16ef981eec4b5bc5c1.tar.gz
semun is not available on Android with NDK less 12.1b or API level 21. With NDK >= 12.1 or API level >= 21 we include sys/sem.h which defines semun
* ACE/ace/config-android.h:
Diffstat (limited to 'ACE/ace/config-android.h')
-rw-r--r--ACE/ace/config-android.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/ACE/ace/config-android.h b/ACE/ace/config-android.h
index a6adca7b12a..e9f33307df4 100644
--- a/ACE/ace/config-android.h
+++ b/ACE/ace/config-android.h
@@ -80,6 +80,8 @@
# define ACE_LACKS_SYS_MSG_H
# define ACE_LACKS_SYS_SHM_H
# define ACE_LACKS_SYSV_SHMEM
+#else
+# define ACE_HAS_SEMUN
#endif
// NDK has telldir() and seekdir() by 15c
@@ -88,11 +90,6 @@
# define ACE_LACKS_SEEKDIR
#endif
-// semun was added to sys/sem.h in r15
-#if ACE_ANDROID_NDK_AT_LEAST(15, 0) || __ANDROID_API__ >= 21
-# define ACE_HAS_SEMUN
-#endif
-
// fd_mask was added in r17c
#if ACE_ANDROID_NDK_LESS_THAN(17, 2)
# define ACE_LACKS_FD_MASK