More macOS stat fixes

This commit is contained in:
Andrew Wood
2023-07-17 21:37:54 +01:00
parent 4e2ab087e5
commit f13f5e70c1
3 changed files with 11 additions and 1 deletions
+10
View File
@@ -18,6 +18,16 @@
#include <sys/time.h>
#include <sys/stat.h>
/*
* Since macOS 10.6, stat64 variants are equivalent to plain stat, and the
* suffixed versions have been removed in macOS 11. See stat(2).
*/
#if defined(__APPLE__) || defined(APPLE)
#define stat64 stat
#define fstat64 fstat
#define lstat64 lstat
#endif
#ifdef __cplusplus
extern "C" {
#endif