From a7157d0e3c148ad9be637c8bb015e33dcd3e0e15 Mon Sep 17 00:00:00 2001 From: Gregory Nutt Date: Fri, 3 Nov 2017 09:57:05 -0600 Subject: [PATCH] include/netutils/netlib.h: In order to avoid pre-processing warnings, NETLIB_SOCK_FAMILY must always be assigned a value, even if there is no real meaning value for it. --- include/netutils/netlib.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/netutils/netlib.h b/include/netutils/netlib.h index fb40d7f35..2bfa24fae 100644 --- a/include/netutils/netlib.h +++ b/include/netutils/netlib.h @@ -96,8 +96,12 @@ # define NETLIB_SOCK_FAMILY AF_PACKET #elif defined(CONFIG_NET_IEEE802154) # define NETLIB_SOCK_FAMILY AF_IEEE802154 +#elif defined(CONFIG_WIRELESS_PKTRADIO) +# define NETLIB_SOCK_FAMILY AF_PKTRADIO #elif defined(CONFIG_NET_USRSOCK) # define NETLIB_SOCK_FAMILY AF_INET +#else +# define NETLIB_SOCK_FAMILY AF_UNSPEC #endif /* Socket protocol of zero normally works */