diff --git a/config/nim.cfg b/config/nim.cfg index 6a259321fb..26948ba928 100644 --- a/config/nim.cfg +++ b/config/nim.cfg @@ -134,11 +134,11 @@ nimblepath="$home/.nimble/pkgs/" # BSD got posix_spawn only recently, so we deactivate it for osproc: define:useFork @elif haiku: - gcc.options.linker = "-Wl,--as-needed -lnetwork" - gcc.cpp.options.linker = "-Wl,--as-needed -lnetwork" - clang.options.linker = "-Wl,--as-needed -lnetwork" - clang.cpp.options.linker = "-Wl,--as-needed -lnetwork" - tcc.options.linker = "-Wl,--as-needed -lnetwork" + gcc.options.linker = "-Wl,--as-needed -lnetwork -lbsd" + gcc.cpp.options.linker = "-Wl,--as-needed -lnetwork -lbsd" + clang.options.linker = "-Wl,--as-needed -lnetwork -lbsd" + clang.cpp.options.linker = "-Wl,--as-needed -lnetwork -lbsd" + tcc.options.linker = "-Wl,--as-needed -lnetwork -lbsd" @elif not genode: # -fopenmp gcc.options.linker = "-ldl" diff --git a/lib/posix/kqueue.nim b/lib/posix/kqueue.nim index 2450cdb424..f5edcaf2e0 100644 --- a/lib/posix/kqueue.nim +++ b/lib/posix/kqueue.nim @@ -28,6 +28,15 @@ elif defined(netbsd): EVFILT_PROC* = 4 ## attached to struct proc EVFILT_SIGNAL* = 5 ## attached to struct proc EVFILT_TIMER* = 6 ## timers (in ms) +elif defined(haiku): + const + EVFILT_READ* = -1 + EVFILT_WRITE* = -2 + EVFILT_AIO* = -3 ## attached to aio requests + EVFILT_VNODE* = -4 ## attached to vnodes + EVFILT_PROC* = -5 ## attached to struct proc + EVFILT_SIGNAL* = -6 ## attached to struct proc + EVFILT_TIMER* = -7 ## timers when defined(macosx): const EVFILT_MACHPORT* = -8 ## Mach portsets