Skip to content

Commit e69729f

Browse files
authored
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.
1 parent 87068ae commit e69729f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

main/streams/plain_wrapper.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ extern int php_get_gid_by_name(const char *name, gid_t *gid);
6060
# define PLAIN_WRAP_BUF_SIZE(st) (st)
6161
# if !defined(HAVE_FDATASYNC)
6262
# define fdatasync fsync
63+
# elif defined(__APPLE__)
64+
// The symbol is present, however not in the headers
65+
extern int fdatasync(int);
6366
# endif
6467
#endif
6568

0 commit comments

Comments
 (0)