Add BSD guard for useconds_t

Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
This commit is contained in:
Sebastian Huber 2016-04-15 13:44:24 +02:00 committed by Corinna Vinschen
parent 4fda5a75fd
commit 75ab33bd5e
2 changed files with 5 additions and 1 deletions

View File

@ -175,5 +175,6 @@ typedef _TIMER_T_ __timer_t;
typedef unsigned short __nlink_t;
typedef long __suseconds_t; /* microseconds (signed) */
typedef unsigned long __useconds_t; /* microseconds (unsigned) */
#endif /* _SYS__TYPES_H */

View File

@ -222,7 +222,10 @@ typedef __timer_t timer_t;
#define _TIMER_T_DECLARED
#endif
typedef unsigned long useconds_t;
#ifndef _USECONDS_T_DECLARED
typedef __useconds_t useconds_t; /* microseconds (unsigned) */
#define _USECONDS_T_DECLARED
#endif
#ifndef _SUSECONDS_T_DECLARED
typedef __suseconds_t suseconds_t;