applets/network: fix the build on FreeBSD

This commit is contained in:
Pierre Pronchery 2022-05-20 21:34:09 +02:00
parent 4389bc1556
commit e33f9d5fb9

View File

@ -296,7 +296,11 @@ static void _refresh_interface_flags(Network * network, NetworkInterface * ni,
gboolean active = TRUE; gboolean active = TRUE;
char const * icon = "network-offline"; char const * icon = "network-offline";
#ifdef SIOCGIFDATA #ifdef SIOCGIFDATA
# if defined(__NetBSD__)
struct ifdatareq ifdr; struct ifdatareq ifdr;
# else
struct if_data ifdr;
# endif
# if GTK_CHECK_VERSION(2, 12, 0) # if GTK_CHECK_VERSION(2, 12, 0)
unsigned long ibytes; unsigned long ibytes;
unsigned long obytes; unsigned long obytes;