summaryrefslogtreecommitdiff
path: root/lib/fstat.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/fstat.c')
-rw-r--r--lib/fstat.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/fstat.c b/lib/fstat.c
index 4918495bc7..ac2b1effe3 100644
--- a/lib/fstat.c
+++ b/lib/fstat.c
@@ -23,6 +23,10 @@
/* Get the original definition of fstat. It might be defined as a macro. */
#include <sys/types.h>
#include <sys/stat.h>
+#if _GL_WINDOWS_64_BIT_ST_SIZE
+# define stat _stati64
+# define fstat _fstati64
+#endif
#undef __need_system_sys_stat_h
static inline int