Skip to content

Commit

Permalink
Workaround fdatasync bug on macOS
Browse files Browse the repository at this point in the history
Fix: #470
  • Loading branch information
byroot committed Jan 30, 2024
1 parent c88b4bd commit d4b4666
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ext/bootsnap/bootsnap.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,12 @@
#include <unistd.h>
#include <sys/stat.h>

#ifdef __APPLE__
// The symbol is present, however not in the headers
// See: https://github.com/Shopify/bootsnap/issues/470
extern int fdatasync(int);
#endif

#ifndef O_NOATIME
#define O_NOATIME 0
#endif
Expand Down

0 comments on commit d4b4666

Please sign in to comment.