posix/osx: fix missing AF_LINK on OSX native

netdev_tap.c uses AF_LINK when compiled on OSX native.

Preparation to remove NATIVEINCLUDES.
This commit is contained in:
Gaëtan Harter 2018-03-19 17:49:10 +01:00
parent dcebfb11bc
commit b5554bcc1f

View File

@ -36,6 +36,9 @@
sa_family_t sa_prefix##family
#define __SOCKADDR_COMMON_SIZE (sizeof (unsigned short int))
#ifdef __MACH__
#define AF_LINK (18) /* Link layer interface */
#endif
#endif
#include <stdlib.h>