diff options
Diffstat (limited to 'src/plugins/tracedump')
-rw-r--r-- | src/plugins/tracedump/graph_cli.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/tracedump/graph_cli.c b/src/plugins/tracedump/graph_cli.c index e83aabaf1fe..6af4706f87d 100644 --- a/src/plugins/tracedump/graph_cli.c +++ b/src/plugins/tracedump/graph_cli.c @@ -16,7 +16,11 @@ */ #include <sys/socket.h> +#ifdef __linux__ #include <linux/if.h> +#else +#include <net/if.h> +#endif /* __linux__ */ #include <vnet/vnet.h> #include <vnet/plugin/plugin.h> |