mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
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:
parent
87068aead9
commit
e69729f2ba
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue