diff --git a/libusbdrivers/CMakeLists.txt b/libusbdrivers/CMakeLists.txt index 205be59..5783719 100644 --- a/libusbdrivers/CMakeLists.txt +++ b/libusbdrivers/CMakeLists.txt @@ -28,4 +28,7 @@ if(LibUSB) add_library(usbdrivers STATIC EXCLUDE_FROM_ALL ${deps}) target_include_directories(usbdrivers PUBLIC include plat_include/${KernelPlatform}) target_link_libraries(usbdrivers sel4 muslc platsupport usbdrivers_Config lwip_Config) + if(LibLwip) + target_link_libraries(usbdrivers lwip) + endif() endif() diff --git a/libusbdrivers/src/drivers/lan9730.c b/libusbdrivers/src/drivers/lan9730.c index 72039d0..f056986 100644 --- a/libusbdrivers/src/drivers/lan9730.c +++ b/libusbdrivers/src/drivers/lan9730.c @@ -22,6 +22,7 @@ #include #include +#include #include "../services.h"