diff --git a/main/streams/plain_wrapper.c b/main/streams/plain_wrapper.c index fcb724bdb8c..bc7cf2f8ef9 100644 --- a/main/streams/plain_wrapper.c +++ b/main/streams/plain_wrapper.c @@ -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