diff options
author | Thomas Haller <thaller@redhat.com> | 2020-12-13 16:08:56 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2020-12-22 16:33:33 +0100 |
commit | 0fca809bfddd42f779e49dd5181f089c20e93320 (patch) | |
tree | 8303596f5a706e18dc8b252fb13c58efe1478702 /libnm-core/nm-setting-bridge.c | |
parent | e711aa1423ecd48e7913812464c2105a24673370 (diff) | |
download | NetworkManager-0fca809bfddd42f779e49dd5181f089c20e93320.tar.gz |
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 'libnm-core/nm-setting-bridge.c')
-rw-r--r-- | libnm-core/nm-setting-bridge.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libnm-core/nm-setting-bridge.c b/libnm-core/nm-setting-bridge.c index ec5e54ee2d..096f1cca9c 100644 --- a/libnm-core/nm-setting-bridge.c +++ b/libnm-core/nm-setting-bridge.c @@ -9,6 +9,7 @@ #include <ctype.h> #include <stdlib.h> +#include <linux/if_ether.h> #include "nm-glib-aux/nm-str-buf.h" #include "nm-connection-private.h" |