From b5554bcc1f6aa67b638a1f299434e6565eb86f47 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Ga=C3=ABtan=20Harter?= <gaetan.harter@fu-berlin.de>
Date: Mon, 19 Mar 2018 17:49:10 +0100
Subject: [PATCH] posix/osx: fix missing AF_LINK on OSX native

netdev_tap.c uses AF_LINK when compiled on OSX native.

Preparation to remove NATIVEINCLUDES.
---
 sys/posix/include/sys/socket.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/sys/posix/include/sys/socket.h b/sys/posix/include/sys/socket.h
index 8bac3ce558..d8207ccf3f 100644
--- a/sys/posix/include/sys/socket.h
+++ b/sys/posix/include/sys/socket.h
@@ -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>
-- 
GitLab