aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrent Cook <busterb@gmail.com>2025-04-16 04:26:34 -0500
committerBrent Cook <busterb@gmail.com>2025-04-16 04:26:34 -0500
commit9ba4b33d668230aa0c453f5c225dc93ccc007985 (patch)
treeb77fc287a04188cd7a65a4fc1d6d372bf876aa28
parent06297aa3cee4591b50dc7cc51353a5fca1e3ae13 (diff)
downloadportable-9ba4b33d668230aa0c453f5c225dc93ccc007985.tar.gz
portable-9ba4b33d668230aa0c453f5c225dc93ccc007985.tar.bz2
portable-9ba4b33d668230aa0c453f5c225dc93ccc007985.zip
change prefix for fstat
-rw-r--r--crypto/compat/posix_win.c2
-rw-r--r--include/compat/sys/stat.h4
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)
63} 63}
64 64
65int 65int
66posix_fstat(int fd, struct stat *statbuf) 66libressl_fstat(int fd, struct stat *statbuf)
67{ 67{
68 return fstat(get_real_fd(fd), statbuf); 68 return fstat(get_real_fd(fd), statbuf);
69} 69}
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 @@
119#endif 119#endif
120 120
121#ifdef _WIN32 121#ifdef _WIN32
122int posix_fstat(int fd, struct stat *statbuf); 122int libressl_fstat(int fd, struct stat *statbuf);
123 123
124#ifndef NO_REDEF_POSIX_FUNCTIONS 124#ifndef NO_REDEF_POSIX_FUNCTIONS
125#define fstat(fd, statbuf) posix_fstat(fd, statbuf) 125#define fstat(fd, statbuf) libressl_fstat(fd, statbuf)
126#endif 126#endif
127#endif 127#endif
128 128