network-utils: add missing #include <netinet/in.h>

As stated in https://pubs.opengroup.org/onlinepubs/9799919799//basedefs/netinet_in.h.html,

> The <netinet/in.h> header shall define the sockaddr_in structure [...]

This fixes the following build error:

In file included from ../src/modules/module-protocol-native.c:44:
../src/modules/network-utils.h:96:35: error: incomplete definition of type 'struct sockaddr_in'
   96 |                 if (inet_ntop(sa->ss_family, &in->sin_addr, ip, len) == NULL)
      |                                               ~~^
This commit is contained in:
Siva Mahadevan 2026-03-11 14:20:46 -04:00
parent cd84d007cd
commit d17e68c43f

View file

@ -11,6 +11,7 @@
#include <stdlib.h>
#include <limits.h>
#include <sys/un.h>
#include <netinet/in.h>
#include <spa/utils/string.h>