Skip to content

Commit 43c7970

Browse files
VlkrS5HT
authored andcommitted
Use inotifywait for {Free,Open}BSD
1 parent 6fb3368 commit 43c7970

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

rebar.config

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,7 @@
1010
{hex, [{doc, edoc}]}.
1111

1212
{port_specs,
13-
[{"darwin", "priv/mac_listener", ["c_src/mac/*.c"]},
14-
{"freebsd", "priv/kqueue", ["c_src/bsd/*.c"]}
15-
]}.
13+
[{"darwin", "priv/mac_listener", ["c_src/mac/*.c"]}]}.
1614

1715
{plugins, [{pc, "1.15.0"}]}.
1816
{provider_hooks, [

src/fs_sup.erl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ init([EventHandler, FileHandler, Path]) ->
1818
Backend = case os:type() of
1919
{unix, darwin} -> fsevents;
2020
{unix, linux} -> inotifywait;
21+
{unix, freebsd} -> inotifywait;
22+
{unix, openbsd} -> inotifywait;
2123
{unix, sunos} -> undefined;
2224
{unix, _} -> kqueue;
2325
{win32, nt} -> inotifywait_win32;

0 commit comments

Comments
 (0)