From 3ee5f8115de5f8131d5b092aa8754c45c3782a26 Mon Sep 17 00:00:00 2001 From: Michal Privoznik Date: Thu, 15 Mar 2018 13:27:55 +0100 Subject: [PATCH] virarptable: Include rtnetlink.h only on Linux MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit And at the same time, do that from .c rather than .h file. Signed-off-by: Michal Privoznik Reviewed-by: Chen Hanxiao Reviewed-by: Daniel P. Berrangé --- 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 #include #include +#ifdef __linux__ +# include +#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 typedef struct _virArpTableEntry virArpTableEntry; typedef virArpTableEntry *virArpTableEntryPtr;