Move RTEMS and XMK specific type definitions
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
This commit is contained in:
parent
30782f7de4
commit
9d4a6534fb
|
@ -5,3 +5,9 @@
|
||||||
#ifndef _SYS_TYPES_H
|
#ifndef _SYS_TYPES_H
|
||||||
#error "must be included via <sys/types.h>"
|
#error "must be included via <sys/types.h>"
|
||||||
#endif /* !_SYS_TYPES_H */
|
#endif /* !_SYS_TYPES_H */
|
||||||
|
|
||||||
|
#if defined(__XMK__) && defined(___int64_t_defined)
|
||||||
|
typedef __uint64_t u_quad_t;
|
||||||
|
typedef __int64_t quad_t;
|
||||||
|
typedef quad_t * qaddr_t;
|
||||||
|
#endif
|
||||||
|
|
|
@ -39,22 +39,6 @@ typedef __uint64_t u_int64_t;
|
||||||
typedef int register_t;
|
typedef int register_t;
|
||||||
#define __BIT_TYPES_DEFINED__ 1
|
#define __BIT_TYPES_DEFINED__ 1
|
||||||
|
|
||||||
#if defined(__rtems__) || defined(__XMK__)
|
|
||||||
/*
|
|
||||||
* The following section is RTEMS specific and is needed to more
|
|
||||||
* closely match the types defined in the BSD sys/types.h.
|
|
||||||
* This is needed to let the RTEMS/BSD TCP/IP stack compile.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/* deprecated */
|
|
||||||
#if ___int64_t_defined
|
|
||||||
typedef __uint64_t u_quad_t;
|
|
||||||
typedef __int64_t quad_t;
|
|
||||||
typedef quad_t * qaddr_t;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* __rtems__ || __XMK__ */
|
|
||||||
|
|
||||||
#ifndef __need_inttypes
|
#ifndef __need_inttypes
|
||||||
|
|
||||||
#define _SYS_TYPES_H
|
#define _SYS_TYPES_H
|
||||||
|
|
|
@ -62,6 +62,12 @@ typedef __lwpid_t lwpid_t; /* Thread ID (a.k.a. LWP) */
|
||||||
#define _LWPID_T_DECLARED
|
#define _LWPID_T_DECLARED
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if ___int64_t_defined
|
||||||
|
typedef __uint64_t u_quad_t;
|
||||||
|
typedef __int64_t quad_t;
|
||||||
|
typedef quad_t * qaddr_t;
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef _RLIM_T_DECLARED
|
#ifndef _RLIM_T_DECLARED
|
||||||
typedef __rlim_t rlim_t; /* resource limit */
|
typedef __rlim_t rlim_t; /* resource limit */
|
||||||
#define _RLIM_T_DECLARED
|
#define _RLIM_T_DECLARED
|
||||||
|
|
Loading…
Reference in New Issue