Skip to content

Commit

Permalink
posix/osx: fix missing AF_LINK on OSX native
Browse files Browse the repository at this point in the history
netdev_tap.c uses AF_LINK when compiled on OSX native.
  • Loading branch information
cladmi committed Mar 19, 2018
1 parent 1432975 commit bd9668a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sys/posix/include/sys/socket.h
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit bd9668a

Please sign in to comment.