From 9ba4b33d668230aa0c453f5c225dc93ccc007985 Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Wed, 16 Apr 2025 04:26:34 -0500 Subject: change prefix for fstat --- crypto/compat/posix_win.c | 2 +- include/compat/sys/stat.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crypto/compat/posix_win.c b/crypto/compat/posix_win.c index 246f891..572e527 100644 --- a/crypto/compat/posix_win.c +++ b/crypto/compat/posix_win.c @@ -63,7 +63,7 @@ posix_fopen(const char *path, const char *mode) } int -posix_fstat(int fd, struct stat *statbuf) +libressl_fstat(int fd, struct stat *statbuf) { return fstat(get_real_fd(fd), statbuf); } diff --git a/include/compat/sys/stat.h b/include/compat/sys/stat.h index aa15c9a..57aa521 100644 --- a/include/compat/sys/stat.h +++ b/include/compat/sys/stat.h @@ -119,10 +119,10 @@ #endif #ifdef _WIN32 -int posix_fstat(int fd, struct stat *statbuf); +int libressl_fstat(int fd, struct stat *statbuf); #ifndef NO_REDEF_POSIX_FUNCTIONS -#define fstat(fd, statbuf) posix_fstat(fd, statbuf) +#define fstat(fd, statbuf) libressl_fstat(fd, statbuf) #endif #endif -- cgit v1.2.3-55-g6feb