提交 04c3704e 编写于 作者: J Justin Clift

nwfilter: add a missing define, so libvirtd builds on macos x

The nwfilter code uses ETH_ALEN, which isn't defined on MacOS X.
This is a simple workaround, to add it when missing.
上级 570d0404
......@@ -38,6 +38,11 @@
#include <net/if_arp.h>
#include <intprops.h>
// Add Linux define missing from OSX
#ifndef ETH_ALEN
# define ETH_ALEN 6 /* Octets in one ethernet addr */
#endif
#include "internal.h"
#include "buf.h"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册