Skip to content

Commit

Permalink
fdatasync disable warning on macOS. (#7122)
Browse files Browse the repository at this point in the history
The symbol exists and picked up but nowhere to be found on the headers.
tested on gcc/clang from homebrew and clang/Xcode.
  • Loading branch information
devnexen authored Jun 9, 2021
1 parent 87068ae commit e69729f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main/streams/plain_wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ extern int php_get_gid_by_name(const char *name, gid_t *gid);
# define PLAIN_WRAP_BUF_SIZE(st) (st)
# if !defined(HAVE_FDATASYNC)
# define fdatasync fsync
# elif defined(__APPLE__)
// The symbol is present, however not in the headers
extern int fdatasync(int);
# endif
#endif

Expand Down

0 comments on commit e69729f

Please sign in to comment.