about summary refs log tree commit diff homepage
path: root/runtime/POSIX
diff options
context:
space:
mode:
authorCristian Cadar <c.cadar@imperial.ac.uk>2022-06-25 21:15:57 +0100
committerMartinNowack <2443641+MartinNowack@users.noreply.github.com>2022-06-27 23:12:04 +0100
commit885997a9841ab666ccf1f1b573b980aa8c84a339 (patch)
treec7b5d83ec12bd4ff9a3da347774976c46e52295b /runtime/POSIX
parent44ebccb0529e2fd9f063bf544c8535104b9b0419 (diff)
downloadklee-885997a9841ab666ccf1f1b573b980aa8c84a339.tar.gz
Define stat64 to be stat on MacOS. This fixes compilation on more recent macOS versions, where stat64 is not defined anymore.
Diffstat (limited to 'runtime/POSIX')
-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__