From 0eb87797394f703df9f77fc45b7c3316e0d2e49f Mon Sep 17 00:00:00 2001 From: Joachim Pouderoux Date: Sat, 17 Jul 2021 13:48:22 +1100 Subject: [PATCH] Fix Android build issue with mkostemp call Replace mkostemp by mkstemp as done for MACH. --- include/diy/io/utils.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/diy/io/utils.hpp b/include/diy/io/utils.hpp index a5fa04add..3e44a470c 100644 --- a/include/diy/io/utils.hpp +++ b/include/diy/io/utils.hpp @@ -115,7 +115,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