From 78b86a2af698d771a4db5286a4222c92d074a6da Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Sat, 12 Apr 2025 16:59:51 -0500 Subject: switch to using high bit for fd detection of file/socket --- include/compat/sys/stat.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include') diff --git a/include/compat/sys/stat.h b/include/compat/sys/stat.h index b88da1d..aa15c9a 100644 --- a/include/compat/sys/stat.h +++ b/include/compat/sys/stat.h @@ -118,4 +118,12 @@ #endif +#ifdef _WIN32 +int posix_fstat(int fd, struct stat *statbuf); + +#ifndef NO_REDEF_POSIX_FUNCTIONS +#define fstat(fd, statbuf) posix_fstat(fd, statbuf) +#endif +#endif + #endif -- cgit v1.2.3-55-g6feb