Add BSD guard for clockid_t

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

View File

@ -151,7 +151,9 @@ typedef _CLOCK_T_ __clock_t;
#define _TIME_T_ long /* time() */
typedef _TIME_T_ __time_t;
#define _CLOCKID_T_ unsigned long
#define _CLOCKID_T_ unsigned long
typedef _CLOCKID_T_ __clockid_t;
#define _TIMER_T_ unsigned long
typedef long __suseconds_t; /* microseconds (signed) */

View File

@ -191,9 +191,10 @@ typedef __mode_t mode_t; /* permissions */
typedef unsigned short nlink_t;
#ifndef __clockid_t_defined
typedef _CLOCKID_T_ clockid_t;
#define __clockid_t_defined
#if !defined(__clockid_t_defined) && !defined(_CLOCKID_T_DECLARED)
typedef __clockid_t clockid_t;
#define __clockid_t_defined
#define _CLOCKID_T_DECLARED
#endif
#ifndef __timer_t_defined