fdatasync disable warning on macOS. (#7122)

The symbol exists and picked up but nowhere to be found on the headers.
tested on gcc/clang from homebrew and clang/Xcode.
This commit is contained in:
David CARLIER 2021-06-09 02:51:10 +01:00 committed by GitHub
parent 87068aead9
commit e69729f2ba
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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