And at the same time, do that from .c rather than .h file.
Signed-off-by: Michal Privoznik <mprivozn(a)redhat.com>
---
src/util/virarptable.c | 3 +++
src/util/virarptable.h | 1 -
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/util/virarptable.c b/src/util/virarptable.c
index 2730ef91af..8d9ab5fdc8 100644
--- a/src/util/virarptable.c
+++ b/src/util/virarptable.c
@@ -26,6 +26,9 @@
#include <stdlib.h>
#include <stdio.h>
#include <arpa/inet.h>
+#ifdef __linux__
+# include <linux/rtnetlink.h>
+#endif
#include "viralloc.h"
#include "virarptable.h"
diff --git a/src/util/virarptable.h b/src/util/virarptable.h
index 404d8eb867..6829198128 100644
--- a/src/util/virarptable.h
+++ b/src/util/virarptable.h
@@ -25,7 +25,6 @@
# define __VIR_ARPTABLE_H__
# include "internal.h"
-# include <linux/rtnetlink.h>
typedef struct _virArpTableEntry virArpTableEntry;
typedef virArpTableEntry *virArpTableEntryPtr;
--
2.16.1