Skip to content

Commit

Permalink
filesystem: Include macOS in BSD defines
Browse files Browse the repository at this point in the history
  • Loading branch information
jcm93 authored and Themaister committed Sep 13, 2024
1 parent d90668f commit a75f206
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion filesystem/linux/os_filesystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,12 @@
#include <sys/inotify.h>
#endif

#ifdef __FreeBSD__
#if defined(__FreeBSD__) || defined(__APPLE__)
#define FSTAT64 fstat
#define FTRUNCATE64 ftruncate
#define MMAP64 mmap
#define STAT64 stat
#define off64_t off_t
#else
#define FSTAT64 fstat64
#define FTRUNCATE64 ftruncate64
Expand Down

0 comments on commit a75f206

Please sign in to comment.