mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 13:00:16 +01:00
libnm: replace <netinet/ether.h> by <net/ethernet.h>/<net/if_arp.h> in "nm-utils.c"
Including <netinet/ether.h> with musl leads to a conflict with <linux/if_ether.h>, due to redefining ethhdr struct. As we include <linux/if_ether.h> in "nm-utils.h", that is a problem. Avoid that, by including other headers.
This commit is contained in:
parent
7f4a7bf433
commit
ba4142b328
1 changed files with 2 additions and 1 deletions
|
|
@ -8,8 +8,9 @@
|
|||
#include "nm-utils.h"
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <netinet/ether.h>
|
||||
#include <net/ethernet.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <net/if_arp.h>
|
||||
#include <uuid/uuid.h>
|
||||
#include <libintl.h>
|
||||
#include <gmodule.h>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue