From e40f4c1912e28c5a29599d7af159db704a84568e Mon Sep 17 00:00:00 2001 From: Ludwig Ortmann Date: Wed, 8 Oct 2014 16:11:15 +0200 Subject: [PATCH] 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; /**