diff options
author | Brent Cook <busterb@gmail.com> | 2025-04-12 16:59:51 -0500 |
---|---|---|
committer | Brent Cook <busterb@gmail.com> | 2025-04-12 16:59:51 -0500 |
commit | 78b86a2af698d771a4db5286a4222c92d074a6da (patch) | |
tree | 81bc88fb0a82bf580386ff68717b5b10381e5c23 /include/compat/sys/stat.h | |
parent | ec123956230a44603196fd68725e03a9ecf36df3 (diff) | |
download | portable-78b86a2af698d771a4db5286a4222c92d074a6da.tar.gz portable-78b86a2af698d771a4db5286a4222c92d074a6da.tar.bz2 portable-78b86a2af698d771a4db5286a4222c92d074a6da.zip |
switch to using high bit for fd detection of file/socket
Diffstat (limited to 'include/compat/sys/stat.h')
-rw-r--r-- | include/compat/sys/stat.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 @@ | |||
118 | 118 | ||
119 | #endif | 119 | #endif |
120 | 120 | ||
121 | #ifdef _WIN32 | ||
122 | int posix_fstat(int fd, struct stat *statbuf); | ||
123 | |||
124 | #ifndef NO_REDEF_POSIX_FUNCTIONS | ||
125 | #define fstat(fd, statbuf) posix_fstat(fd, statbuf) | ||
126 | #endif | ||
127 | #endif | ||
128 | |||
121 | #endif | 129 | #endif |