From: Justin Clift Date: Mon, 27 Sep 2010 15:18:57 +0000 (+1000) Subject: nwfilter: add a missing define, so libvirtd builds on macos x X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=04c3704;p=libvirt.git 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. --- diff --git a/src/nwfilter/nwfilter_learnipaddr.c b/src/nwfilter/nwfilter_learnipaddr.c index 7c94fc24ce..7fc55a67e7 100644 --- a/src/nwfilter/nwfilter_learnipaddr.c +++ b/src/nwfilter/nwfilter_learnipaddr.c @@ -38,6 +38,11 @@ #include #include +// 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"