From: Felix Fietkau Date: Tue, 15 Jan 2013 09:54:37 +0000 (+0100) Subject: add mac os x compat #define for in6_addr s6_addr32 X-Git-Url: https://git.archive.openwrt.org/?p=project%2Fnetifd.git;a=commitdiff_plain;h=9908adbd9a31c92f13b05f0c057d4429edbc5184 add mac os x compat #define for in6_addr s6_addr32 Signed-off-by: Felix Fietkau --- diff --git a/utils.h b/utils.h index 174e825..e159b42 100644 --- a/utils.h +++ b/utils.h @@ -106,4 +106,8 @@ int parse_ip_and_netmask(int af, const char *str, void *addr, unsigned int *netm char * format_macaddr(uint8_t *mac); +#ifdef __APPLE__ +#define s6_addr32 __u6_addr.__u6_addr32 +#endif + #endif