And at the same time, do that from .c rather than .h file.
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Chen Hanxiao<chenhanxiao@gmail.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
#include <stdlib.h>
#include <stdio.h>
#include <arpa/inet.h>
+#ifdef __linux__
+# include <linux/rtnetlink.h>
+#endif
#include "viralloc.h"
#include "virarptable.h"
# define __VIR_ARPTABLE_H__
# include "internal.h"
-# include <linux/rtnetlink.h>
typedef struct _virArpTableEntry virArpTableEntry;
typedef virArpTableEntry *virArpTableEntryPtr;