All the _conf includes are only needed in the C file.
Signed-off-by: Ján Tomko <jtomko(a)redhat.com>
---
src/conf/virnetworkportdef.c | 4 ++++
src/conf/virnetworkportdef.h | 3 ---
2 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/conf/virnetworkportdef.c b/src/conf/virnetworkportdef.c
index a972b698cc..66d900088a 100644
--- a/src/conf/virnetworkportdef.c
+++ b/src/conf/virnetworkportdef.c
@@ -28,6 +28,10 @@
#include "virnetworkportdef.h"
#include "network_conf.h"
+#include "netdev_bandwidth_conf.h"
+#include "netdev_vlan_conf.h"
+#include "netdev_vport_profile_conf.h"
+
#define VIR_FROM_THIS VIR_FROM_NETWORK
VIR_ENUM_IMPL(virNetworkPortPlug,
diff --git a/src/conf/virnetworkportdef.h b/src/conf/virnetworkportdef.h
index 78cf2c1ba4..72da8b6915 100644
--- a/src/conf/virnetworkportdef.h
+++ b/src/conf/virnetworkportdef.h
@@ -28,9 +28,6 @@
#include "virnetdevbandwidth.h"
#include "virpci.h"
#include "virxml.h"
-#include "netdev_vport_profile_conf.h"
-#include "netdev_bandwidth_conf.h"
-#include "netdev_vlan_conf.h"
typedef struct _virNetworkPortDef virNetworkPortDef;
typedef virNetworkPortDef *virNetworkPortDefPtr;
--
2.24.1