From e649b0e91c1eed6fe1a4336d6c1ce7e3df3d9b78 Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 24 Jan 2024 23:17:12 +0800 Subject: disable some apis for alpine --- core/src/tbox/inc/linux/tbox.config.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/core/src/tbox/inc/linux/tbox.config.h b/core/src/tbox/inc/linux/tbox.config.h index 2b36347a7..20e49240c 100755 --- a/core/src/tbox/inc/linux/tbox.config.h +++ b/core/src/tbox/inc/linux/tbox.config.h @@ -147,10 +147,12 @@ #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 -#define TB_CONFIG_POSIX_HAVE_LSTAT64 1 +// alpine does not support +/* #undef TB_CONFIG_POSIX_HAVE_STAT64 */ +/* #undef TB_CONFIG_POSIX_HAVE_LSTAT64 */ #define TB_CONFIG_POSIX_HAVE_GETHOSTNAME 1 -#define TB_CONFIG_POSIX_HAVE_GETIFADDRS 1 +// alpine does not support +/* #undef TB_CONFIG_POSIX_HAVE_GETIFADDRS */ #define TB_CONFIG_POSIX_HAVE_SEM_INIT 1 #define TB_CONFIG_POSIX_HAVE_GETPAGESIZE 1 #define TB_CONFIG_POSIX_HAVE_SYSCONF 1 @@ -162,8 +164,9 @@ #define TB_CONFIG_POSIX_HAVE_WRITEV 1 #define TB_CONFIG_POSIX_HAVE_PREADV 1 #define TB_CONFIG_POSIX_HAVE_PWRITEV 1 -#define TB_CONFIG_POSIX_HAVE_PREAD64 1 -#define TB_CONFIG_POSIX_HAVE_PWRITE64 1 +// alpine does not support +/* #undef TB_CONFIG_POSIX_HAVE_PREAD64 */ +/* #undef TB_CONFIG_POSIX_HAVE_PWRITE64 */ #define TB_CONFIG_POSIX_HAVE_FDATASYNC 1 /* #undef TB_CONFIG_POSIX_HAVE_COPYFILE */ #define TB_CONFIG_POSIX_HAVE_SENDFILE 1 -- cgit v1.3.1