AP_HAL: socket native fix

This commit is contained in:
Andrew Tridgell 2023-12-26 17:22:23 +11:00
parent 34c737de36
commit 1e7ca34531
1 changed files with 5 additions and 0 deletions

View File

@ -1,6 +1,9 @@
/*
variant of SocketAPM using native sockets (not via lwip)
*/
#include <AP_HAL/AP_HAL_Boards.h>
#if CONFIG_HAL_BOARD == HAL_BOARD_SITL || CONFIG_HAL_BOARD == HAL_BOARD_LINUX
#include "Socket_native.h"
#if AP_SOCKET_NATIVE_ENABLED
@ -9,3 +12,5 @@
#define SOCKET_CLASS_NAME SocketAPM_native
#include "Socket.cpp"
#endif
#endif