]> xenbits.xensource.com Git - libvirt.git/commitdiff
nwfilter: add a missing define, so libvirtd builds on macos x
authorJustin Clift <jclift@redhat.com>
Mon, 27 Sep 2010 15:18:57 +0000 (01:18 +1000)
committerJustin Clift <jclift@redhat.com>
Mon, 27 Sep 2010 15:31:52 +0000 (01:31 +1000)
The nwfilter code uses ETH_ALEN, which isn't defined on MacOS X.
This is a simple workaround, to add it when missing.

src/nwfilter/nwfilter_learnipaddr.c

index 7c94fc24ce6356563030e8cf5ac0d8108730c274..7fc55a67e733848723c3961822f3fb96e02eabf9 100644 (file)
 #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"