mirror of
git://sourceware.org/git/newlib-cygwin.git
synced 2025-02-21 00:07:36 +08:00
Add BSD guard for nlink_t
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
This commit is contained in:
parent
f3e587d30a
commit
4fda5a75fd
@ -173,6 +173,7 @@ typedef _CLOCKID_T_ __clockid_t;
|
|||||||
#define _TIMER_T_ unsigned long
|
#define _TIMER_T_ unsigned long
|
||||||
typedef _TIMER_T_ __timer_t;
|
typedef _TIMER_T_ __timer_t;
|
||||||
|
|
||||||
|
typedef unsigned short __nlink_t;
|
||||||
typedef long __suseconds_t; /* microseconds (signed) */
|
typedef long __suseconds_t; /* microseconds (signed) */
|
||||||
|
|
||||||
#endif /* _SYS__TYPES_H */
|
#endif /* _SYS__TYPES_H */
|
||||||
|
@ -205,7 +205,10 @@ typedef __mode_t mode_t; /* permissions */
|
|||||||
#define _MODE_T_DECLARED
|
#define _MODE_T_DECLARED
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef unsigned short nlink_t;
|
#ifndef _NLINK_T_DECLARED
|
||||||
|
typedef __nlink_t nlink_t; /* link count */
|
||||||
|
#define _NLINK_T_DECLARED
|
||||||
|
#endif
|
||||||
|
|
||||||
#if !defined(__clockid_t_defined) && !defined(_CLOCKID_T_DECLARED)
|
#if !defined(__clockid_t_defined) && !defined(_CLOCKID_T_DECLARED)
|
||||||
typedef __clockid_t clockid_t;
|
typedef __clockid_t clockid_t;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user