diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-01-15 10:54:37 +0100 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2013-01-15 10:55:53 +0100 |
commit | 9908adbd9a31c92f13b05f0c057d4429edbc5184 (patch) | |
tree | c256138cfe5ed4bd89048a0713ebf47c2582dff4 | |
parent | 05b414d194e99d2f06c4325e2e5d856bec922eac (diff) |
add mac os x compat #define for in6_addr s6_addr32
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
-rw-r--r-- | utils.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 |