--- CMakeLists.txt.orig 2021-02-14 04:57:24.000000000 +1100 +++ CMakeLists.txt 2022-02-10 10:37:33.308781000 +1100 @@ -220,15 +220,19 @@ list(APPEND uv_sources src/unix/freebsd.c) endif() -if(CMAKE_SYSTEM_NAME MATCHES "DragonFly|FreeBSD|NetBSD|OpenBSD") +if(CMAKE_SYSTEM_NAME MATCHES "BSDSUniX") + list(APPEND uv_sources src/unix/bsdsunix.c) +endif() + +if(CMAKE_SYSTEM_NAME MATCHES "DragonFly|BSDSUniX|FreeBSD|NetBSD|OpenBSD") list(APPEND uv_sources src/unix/posix-hrtime.c src/unix/bsd-proctitle.c) endif() -if(APPLE OR CMAKE_SYSTEM_NAME MATCHES "DragonFly|FreeBSD|NetBSD|OpenBSD") +if(APPLE OR CMAKE_SYSTEM_NAME MATCHES "DragonFly|BSDSUniX|FreeBSD|NetBSD|OpenBSD") list(APPEND uv_sources src/unix/bsd-ifaddrs.c src/unix/kqueue.c) endif() -if(CMAKE_SYSTEM_NAME MATCHES "FreeBSD") +if(CMAKE_SYSTEM_NAME MATCHES "BSDSUniX|FreeBSD") list(APPEND uv_sources src/unix/random-getrandom.c) endif() @@ -331,7 +335,7 @@ list(APPEND uv_libraries socket) endif() -if(APPLE OR CMAKE_SYSTEM_NAME MATCHES "DragonFly|FreeBSD|Linux|NetBSD|OpenBSD") +if(APPLE OR CMAKE_SYSTEM_NAME MATCHES "DragonFly|BSDSUniX|FreeBSD|Linux|NetBSD|OpenBSD") list(APPEND uv_test_libraries util) endif()