summaryrefslogtreecommitdiff
path: root/src/supplicant/nm-supplicant-interface.c
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2020-12-13 16:08:56 +0100
committerThomas Haller <thaller@redhat.com>2020-12-22 16:33:33 +0100
commit0fca809bfddd42f779e49dd5181f089c20e93320 (patch)
tree8303596f5a706e18dc8b252fb13c58efe1478702 /src/supplicant/nm-supplicant-interface.c
parente711aa1423ecd48e7913812464c2105a24673370 (diff)
all: explicit include <linux/if_{ether,infiniband,vlan}.h> as needed
Currently libnm headers include <linux/if_{ether,infiniband,vlan}.h>. These are public headers, that means we drag in the linux header to all users of <NetworkManager.h>. Often the linux headers work badly together with certain headers from libc. Depending on the libc version, you have to order linux headers in the right order with respect to libc headers. We should do better about libnm headers. As a first step, assume that the linux headers don't get included by libnm, and explicitly include them where they are needed.
Diffstat (limited to 'src/supplicant/nm-supplicant-interface.c')
-rw-r--r--src/supplicant/nm-supplicant-interface.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/supplicant/nm-supplicant-interface.c b/src/supplicant/nm-supplicant-interface.c
index 611372d5da..9b0b15f9d5 100644
--- a/src/supplicant/nm-supplicant-interface.c
+++ b/src/supplicant/nm-supplicant-interface.c
@@ -9,6 +9,7 @@
#include "nm-supplicant-interface.h"
#include <stdio.h>
+#include <linux/if_ether.h>
#include "NetworkManagerUtils.h"
#include "nm-core-internal.h"