diff --git a/samples/net/capture/src/main.c b/samples/net/capture/src/main.c index 1b68ee30afa8a..eb9fe6a62b107 100644 --- a/samples/net/capture/src/main.c +++ b/samples/net/capture/src/main.c @@ -8,7 +8,12 @@ #include LOG_MODULE_REGISTER(net_capture_sample, LOG_LEVEL_DBG); +#if defined(CONFIG_NATIVE_LIBC) +#define ARPHRD_CAN 280 +#define ARPHRD_PPP 512 +#else #include +#endif #include #include #include