aboutsummaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorDylan Araps <dylan.araps@gmail.com>2026-03-02 14:36:29 +0200
committerDylan Araps <dylan.araps@gmail.com>2026-03-02 14:36:29 +0200
commit7ece6c0d5bc34730a9a3c07813d9c4f44551b50c (patch)
treea1ea2e906e6eba6e8b49dbd17e0c0880752242ba /platform
parentde374325783da5f55e59fd674372af4c4e837790 (diff)
platform/bsd.h: Remove apple-ism
Diffstat (limited to 'platform')
-rw-r--r--platform/bsd.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/bsd.h b/platform/bsd.h
index 7a03700..bf7530d 100644
--- a/platform/bsd.h
+++ b/platform/bsd.h
@@ -57,7 +57,7 @@ fs_watch(struct platform *p, const char *path)
close(p->dfd);
p->dfd = -1;
}
- p->dfd = open(path, O_EVTONLY);
+ p->dfd = open(path, O_RDONLY);
if (p->dfd == -1) return;
EV_SET(&p->ev, p->dfd,
EVFILT_VNODE, EV_ADD|EV_CLEAR,