vnet: Disable tuntap build on not Linux 50/40350/2
authorTom Jones <thj@freebsd.org>
Tue, 30 Jan 2024 09:26:14 +0000 (09:26 +0000)
committerDamjan Marion <dmarion@0xa5.net>
Sun, 18 Feb 2024 16:03:01 +0000 (16:03 +0000)
tuntap requires porting on FreeBSD, only build on Linux for now.

Type: improvement
Change-Id: I448c462b31f3bc06f291a95d0ff5df9d6f8f24b8
Signed-off-by: Tom Jones <thj@freebsd.org>
src/vnet/CMakeLists.txt

index 516a5fa..973a6c9 100644 (file)
@@ -1107,6 +1107,7 @@ list(APPEND VNET_API_FILES feature/feature.api)
 
 # FIXME: unix/hgshm.c
 
+if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
 list(APPEND VNET_SOURCES
   unix/gdb_funcs.c
   unix/tuntap.c
@@ -1115,6 +1116,7 @@ list(APPEND VNET_SOURCES
 list(APPEND VNET_HEADERS
   unix/tuntap.h
 )
+endif()
 
 ##############################################################################
 # FIB