From f1c8acfb94057b93aa9a4362e443be8441914b6e Mon Sep 17 00:00:00 2001 From: Joachim Pouderoux Date: Sat, 17 Jul 2021 14:04:50 +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 af05de2c..c857560e 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 -- GitLab