From e02f7fc1352115aa5e01c9dea6c3f5317b6684a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BF=9C=E6=96=B9=E6=97=85=E8=80=85?= <112397151+WhiteCloud0123@users.noreply.github.com> Date: Wed, 12 Jun 2024 20:29:52 +0800 Subject: [PATCH] handle it, similar to macOS --- src/worldfactory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/worldfactory.cpp b/src/worldfactory.cpp index a249f7f384ac8..e463a0ce336a0 100644 --- a/src/worldfactory.cpp +++ b/src/worldfactory.cpp @@ -1989,13 +1989,13 @@ bool worldfactory::valid_worldname( const std::string &name, bool automated ) co bool WORLD::create_timestamp() { -#if defined( TIME_UTC ) && !defined( MACOSX ) +#if defined( TIME_UTC ) && !defined( MACOSX ) && !defined(__ANDROID__) std::timespec t; if( std::timespec_get( &t, TIME_UTC ) != TIME_UTC ) { return false; } #else - // MinGW-w64 with pthread, MacOS, etc + // MinGW-w64 with pthread, MacOS, Android, etc timespec t; if( clock_gettime( CLOCK_REALTIME, &t ) != 0 ) { return false;