diff --git a/include/diy/io/utils.hpp b/include/diy/io/utils.hpp index af05de2c4dface5d110fb509bb14b5e49df336dc..c857560effc12023d4107c35633c249014ea89ef 100644 --- a/include/diy/io/utils.hpp +++ b/include/diy/io/utils.hpp @@ -117,7 +117,7 @@ namespace utils s_template[filename.size()] = 0; int handle = -1; -#if defined(__MACH__) +#if defined(__MACH__) || defined(__ANDROID_API__) // TODO: figure out how to open with O_SYNC handle = ::mkstemp(s_template.get()); #else