Skip to content

Commit 0e638d9

Browse files
committed
stream: Fix MacOS build. fsync as alias for fdatasync.
1 parent 612609e commit 0e638d9

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
@@ -58,6 +58,9 @@ extern int php_get_gid_by_name(const char *name, gid_t *gid);
5858
#define fdatasync fsync
5959
#else
6060
# define PLAIN_WRAP_BUF_SIZE(st) (st)
61+
# if defined(__APPLE__)
62+
# define fdatasync fsync
63+
# endif
6164
#endif
6265

6366
/* parse standard "fopen" modes into open() flags */

0 commit comments

Comments
 (0)