mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-03-13 05:33:55 -04:00
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:
parent
cd84d007cd
commit
d17e68c43f
1 changed files with 1 additions and 0 deletions
|
|
@ -11,6 +11,7 @@
|
|||
#include <stdlib.h>
|
||||
#include <limits.h>
|
||||
#include <sys/un.h>
|
||||
#include <netinet/in.h>
|
||||
|
||||
#include <spa/utils/string.h>
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue