We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5474cf7 commit 8d008a1Copy full SHA for 8d008a1
src/coroutine/hook.cc
@@ -49,8 +49,10 @@ using swoole::Iouring;
49
static std::unordered_map<int, std::shared_ptr<Socket>> socket_map;
50
static std::mutex socket_map_lock;
51
52
-#ifdef __APPLE__
53
-extern int fdatasync(int);
+#if defined(__APPLE__) || defined(__MACH__)
+static int fdatasync(int fd) {
54
+ return fcntl(fd, F_FULLFSYNC);
55
+}
56
#endif
57
58
static sw_inline bool is_no_coro() {
0 commit comments