about summary refs log tree commit diff homepage
path: root/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'runtime')
-rw-r--r--runtime/POSIX/fd.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/runtime/POSIX/fd.h b/runtime/POSIX/fd.h
index a5e15c9b..39307ceb 100644
--- a/runtime/POSIX/fd.h
+++ b/runtime/POSIX/fd.h
@@ -23,7 +23,12 @@
 #include <sys/statfs.h>
 #endif
 
+#include <sys/stat.h>
+
 #ifdef __APPLE__
+#ifndef stat64
+#define stat64 stat
+#endif
 #include <sys/dtrace.h>
 #endif
 #ifdef __FreeBSD__