From be370e1ec0c20ac64ab9af89b1ca7cdb561378ca Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 12 Jan 2021 00:58:45 +0800 Subject: improve config for apple m1 --- core/src/tbox/inc/macosx/tbox.config.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/src/tbox/inc/macosx/tbox.config.h b/core/src/tbox/inc/macosx/tbox.config.h index f7e64654a..c1293f305 100755 --- a/core/src/tbox/inc/macosx/tbox.config.h +++ b/core/src/tbox/inc/macosx/tbox.config.h @@ -143,7 +143,11 @@ #define TB_CONFIG_POSIX_HAVE_OPENDIR 1 #define TB_CONFIG_POSIX_HAVE_DLOPEN 1 #define TB_CONFIG_POSIX_HAVE_OPEN 1 -#define TB_CONFIG_POSIX_HAVE_STAT64 1 +#if !defined(__arm__) +# define TB_CONFIG_POSIX_HAVE_STAT64 1 +#else +/* #undef TB_CONFIG_POSIX_HAVE_STAT64 */ +#endif #define TB_CONFIG_POSIX_HAVE_GETHOSTNAME 1 #define TB_CONFIG_POSIX_HAVE_GETIFADDRS 1 #define TB_CONFIG_POSIX_HAVE_SEM_INIT 1 -- cgit v1.3.1