logging: Fix network backend compilation

Because of include file changes, we now need to include both
hostname.h and net_if.h in the syslog logging module directly.

Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
This commit is contained in:
Jukka Rissanen 2024-05-17 08:58:14 +03:00 committed by Johan Hedberg
commit b042c5796a

View file

@ -12,6 +12,8 @@ LOG_MODULE_REGISTER(log_backend_net, CONFIG_LOG_DEFAULT_LEVEL);
#include <zephyr/logging/log_core.h> #include <zephyr/logging/log_core.h>
#include <zephyr/logging/log_output.h> #include <zephyr/logging/log_output.h>
#include <zephyr/logging/log_backend_net.h> #include <zephyr/logging/log_backend_net.h>
#include <zephyr/net/hostname.h>
#include <zephyr/net/net_if.h>
#include <zephyr/net/socket.h> #include <zephyr/net/socket.h>
/* Set this to 1 if you want to see what is being sent to server */ /* Set this to 1 if you want to see what is being sent to server */