summary refs log tree commit diff
path: root/include/compat/sys/stat.h
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2026-06-01 14:45:02 -0400
committerJune McEnroe <june@causal.agency>2026-06-01 14:45:02 -0400
commitf39835641d4413ef327857f0dc4a24d5b9599861 (patch)
treedeec6e5701019178078d700fcb187e97c6932c43 /include/compat/sys/stat.h
parentImport LibreSSL 4.0.1 (diff)
downloadlibretls-f39835641d4413ef327857f0dc4a24d5b9599861.tar.gz
libretls-f39835641d4413ef327857f0dc4a24d5b9599861.zip
Import LibreSSL 4.1.0
Diffstat (limited to 'include/compat/sys/stat.h')
-rw-r--r--include/compat/sys/stat.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/compat/sys/stat.h b/include/compat/sys/stat.h
index b88da1d..57aa521 100644
--- a/include/compat/sys/stat.h
+++ b/include/compat/sys/stat.h
@@ -118,4 +118,12 @@
 
 #endif
 
+#ifdef _WIN32
+int libressl_fstat(int fd, struct stat *statbuf);
+
+#ifndef NO_REDEF_POSIX_FUNCTIONS
+#define fstat(fd, statbuf) libressl_fstat(fd, statbuf)
+#endif
+#endif
+
 #endif