summaryrefslogtreecommitdiff
path: root/src/dhcp-manager
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2016-02-28 11:38:51 +0100
committerThomas Haller <thaller@redhat.com>2016-02-29 14:08:00 +0100
commitbf29d02ac11fb5304bb048bdb2f49b74de7a71dd (patch)
tree62a4ecaa25d007b02967bb301e7f172aa7ce7ae6 /src/dhcp-manager
parentce4b1dc89172dc5399703709539e92d8ac546afa (diff)
downloadNetworkManager-bf29d02ac11fb5304bb048bdb2f49b74de7a71dd.tar.gz
systemd: don't include "nm-sd-adapt.h" in systemd header files
The header files are not compiled directly, but always included while compiling other source files. We already require every source file to include "nm-sd-adapt.h" as first, thus we don't need the include in the headers too.
Diffstat (limited to 'src/dhcp-manager')
-rw-r--r--src/dhcp-manager/nm-dhcp-systemd.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/dhcp-manager/nm-dhcp-systemd.c b/src/dhcp-manager/nm-dhcp-systemd.c
index 7c2bc78f59..b5a3d67cc0 100644
--- a/src/dhcp-manager/nm-dhcp-systemd.c
+++ b/src/dhcp-manager/nm-dhcp-systemd.c
@@ -36,6 +36,9 @@
#include "sd-dhcp-client.h"
#include "sd-dhcp6-client.h"
+
+/* we use a private systemd header, thus need to include nm-sd-adapt.h. */
+#include "nm-sd-adapt.h"
#include "dhcp-lease-internal.h"
G_DEFINE_TYPE (NMDhcpSystemd, nm_dhcp_systemd, NM_TYPE_DHCP_CLIENT)