From 4b3e4f420897c19b7ce6bbfea25cc204cfb909ed Mon Sep 17 00:00:00 2001 From: MacroModel Date: Sat, 7 Dec 2024 20:53:45 +0800 Subject: [PATCH] fix --- include/fast_io_hosted/platforms/posix.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/fast_io_hosted/platforms/posix.h b/include/fast_io_hosted/platforms/posix.h index b94ba38d..ccb16b54 100644 --- a/include/fast_io_hosted/platforms/posix.h +++ b/include/fast_io_hosted/platforms/posix.h @@ -837,10 +837,10 @@ inline int open_fd_from_handle(void *handle, open_mode md) #else #if defined(__DARWIN_C_LEVEL) || defined(__MSDOS__) extern unsigned int my_posix_open_noexcept(const char *pathname, int flags) noexcept __asm__("_open"); -extern unsigned int my_posix_open_noexcept(char const *pathname, int flags, struct mode_t mode) noexcept __asm__("_open"); +extern unsigned int my_posix_open_noexcept(char const *pathname, int flags, mode_t mode) noexcept __asm__("_open"); #else extern unsigned int my_posix_open_noexcept(const char *pathname, int flags) noexcept __asm__("open"); -extern unsigned int my_posix_open_noexcept(char const *pathname, int flags, struct mode_t mode) noexcept __asm__("open"); +extern unsigned int my_posix_open_noexcept(char const *pathname, int flags, mode_t mode) noexcept __asm__("open"); #endif #if defined(__MSDOS__)