diff --git a/runtime/druntime/src/importc.h b/runtime/druntime/src/importc.h index 07a8c358ba..c4204f307e 100644 --- a/runtime/druntime/src/importc.h +++ b/runtime/druntime/src/importc.h @@ -201,3 +201,17 @@ typedef struct {} __SVFloat64_t; #if __APPLE__ #undef __SIZEOF_INT128__ #endif + +#if __ANDROID__ +#undef __SIZEOF_INT128__ +#define __GNUC_VA_LIST +#define _VA_LIST +#define __builtin_va_list va_list +#define __gnuc_va_list va_list + +// This macro resolves the ambiguity between Bionic and library ioctl. +// https://android.googlesource.com/platform/bionic/+/master/libc/include/bits/ioctl.h +#define BIONIC_IOCTL_NO_SIGNEDNESS_OVERLOAD + +#define __sync_synchronize() +#endif