all: remove unnecessary <netinet/ether.h> includes

<netinet/ether.h> with musl defines ethhdr struct, which conflicts
with <linux/if_ether.h>. The latter is included by "nm-utils.h",
so this is a problem.

Drop includes of "netinet/ether.h" that are not necessary.
This commit is contained in:
Thomas Haller 2020-12-13 16:52:54 +01:00
parent 0a730fe0ea
commit 7f4a7bf433
No known key found for this signature in database
GPG key ID: 29C2366E4DFC5728
7 changed files with 0 additions and 7 deletions

View file

@ -11,7 +11,6 @@
#include <stdlib.h>
#include <unistd.h>
#include <signal.h>
#include <netinet/ether.h>
#include <readline/readline.h>
#include <readline/history.h>
#include <fcntl.h>

View file

@ -11,7 +11,6 @@
#include <errno.h>
#include <getopt.h>
#include <net/if.h>
#include <netinet/ether.h>
#include <netinet/in.h>
#include <poll.h>
#include <stdbool.h>

View file

@ -8,7 +8,6 @@
#include <stdio.h>
#include <stdarg.h>
#include <unistd.h>
#include <netinet/ether.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/socket.h>

View file

@ -8,7 +8,6 @@
#include <stdio.h>
#include <stdarg.h>
#include <unistd.h>
#include <netinet/ether.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/socket.h>

View file

@ -8,7 +8,6 @@
#include <stdio.h>
#include <stdarg.h>
#include <unistd.h>
#include <netinet/ether.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <sys/socket.h>

View file

@ -4,7 +4,6 @@
#include <arpa/inet.h>
#include <linux/if.h>
#include <netinet/ether.h>
#include "sd-id128.h"
#include "sd-ndisc.h"

View file

@ -6,7 +6,6 @@
#include "nm-default.h"
#include <time.h>
#include <netinet/ether.h>
#include <sys/types.h>
#include <sys/wait.h>
#include <fcntl.h>