summaryrefslogtreecommitdiff
path: root/gl/fstat.c
diff options
context:
space:
mode:
Diffstat (limited to 'gl/fstat.c')
-rw-r--r--gl/fstat.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gl/fstat.c b/gl/fstat.c
index 4918495..ac2b1ef 100644
--- a/gl/fstat.c
+++ b/gl/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