--- vendor/CMakeLists.adb.txt.orig	2026-08-01 05:20:11 UTC
+++ vendor/CMakeLists.adb.txt
@@ -54,10 +54,13 @@ if(APPLE)
 if(APPLE)
 	list(APPEND libadb_SOURCES
 		adb/client/usb_osx.cpp)
-else()
+elseif(CMAKE_SYSTEM_NAME STREQUAL "Linux")
 	list(APPEND libadb_SOURCES
 		adb/client/usb_linux.cpp
 		adb/client/usb_linux_netlink.cpp)
+elseif(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
+	list(APPEND libadb_SOURCES
+		adb/client/usb_freebsd.cpp)
 endif()
 
 add_library(libadb STATIC ${libadb_SOURCES})
