diff --git a/drivers/wifi/simplelink/simplelink_sockets.c b/drivers/wifi/simplelink/simplelink_sockets.c index 7b4451c9354..fc3e5ad6539 100644 --- a/drivers/wifi/simplelink/simplelink_sockets.c +++ b/drivers/wifi/simplelink/simplelink_sockets.c @@ -23,6 +23,12 @@ LOG_MODULE_DECLARE(LOG_MODULE_NAME); #include "sockets_internal.h" #include "tls_internal.h" +/* Need these for POLLIN, POLLOUT, MSG_PEEK, etc. */ +#if defined(CONFIG_POSIX_API) +#include "posix/poll.h" +#include "posix/sys/socket.h" +#endif + #define FAILED (-1) /* Increment by 1 to make sure we do not store the value of 0, which has