From 6fba6a7f5a5f3e0d83b33111b1d1d25c43e16a2b Mon Sep 17 00:00:00 2001 From: Ludwig Ortmann Date: Wed, 8 Oct 2014 16:09:32 +0200 Subject: [PATCH 1/2] native/freebsd: fix tapsetup permission --- cpu/native/tapsetup-freebsd.sh | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 cpu/native/tapsetup-freebsd.sh diff --git a/cpu/native/tapsetup-freebsd.sh b/cpu/native/tapsetup-freebsd.sh old mode 100644 new mode 100755 From e40f4c1912e28c5a29599d7af159db704a84568e Mon Sep 17 00:00:00 2001 From: Ludwig Ortmann Date: Wed, 8 Oct 2014 16:11:15 +0200 Subject: [PATCH 2/2] native/freebsd: fix usecond typdef --- sys/posix/include/unistd.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/posix/include/unistd.h b/sys/posix/include/unistd.h index 9e0d385496..85f8d663b1 100644 --- a/sys/posix/include/unistd.h +++ b/sys/posix/include/unistd.h @@ -52,13 +52,15 @@ int close(int fildes); #ifndef __USECONDS_T_TYPE -#ifndef __MACH__ +#if !(defined(__MACH__) || defined(__FreeBSD__)) typedef unsigned long __USECONDS_T_TYPE; typedef __USECONDS_T_TYPE __useconds_t; #else +#ifdef __MACH__ typedef __darwin_useconds_t __useconds_t; #endif #endif +#endif typedef __useconds_t useconds_t; /**