Add BSD guard for timer_t
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
This commit is contained in:
parent
326f8962a1
commit
365bc664e9
|
@ -154,7 +154,8 @@ typedef _TIME_T_ __time_t;
|
|||
#define _CLOCKID_T_ unsigned long
|
||||
typedef _CLOCKID_T_ __clockid_t;
|
||||
|
||||
#define _TIMER_T_ unsigned long
|
||||
#define _TIMER_T_ unsigned long
|
||||
typedef _TIMER_T_ __timer_t;
|
||||
|
||||
typedef long __suseconds_t; /* microseconds (signed) */
|
||||
|
||||
|
|
|
@ -197,9 +197,10 @@ typedef __clockid_t clockid_t;
|
|||
#define _CLOCKID_T_DECLARED
|
||||
#endif
|
||||
|
||||
#ifndef __timer_t_defined
|
||||
typedef _TIMER_T_ timer_t;
|
||||
#define __timer_t_defined
|
||||
#if !defined(__timer_t_defined) && !defined(_TIMER_T_DECLARED)
|
||||
typedef __timer_t timer_t;
|
||||
#define __timer_t_defined
|
||||
#define _TIMER_T_DECLARED
|
||||
#endif
|
||||
|
||||
typedef unsigned long useconds_t;
|
||||
|
|
Loading…
Reference in New Issue