Skip to content

Commit f4f530b

Browse files
committed
filesystem: Include macOS in BSD defines
1 parent 93fa4b6 commit f4f530b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

filesystem/linux/os_filesystem.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,12 @@
3939
#include <sys/inotify.h>
4040
#endif
4141

42-
#ifdef __FreeBSD__
42+
#if defined(__FreeBSD__) || defined(__APPLE__)
4343
#define FSTAT64 fstat
4444
#define FTRUNCATE64 ftruncate
4545
#define MMAP64 mmap
4646
#define STAT64 stat
47+
#define off64_t off_t
4748
#else
4849
#define FSTAT64 fstat64
4950
#define FTRUNCATE64 ftruncate64

0 commit comments

Comments
 (0)