Always provide register_t via <sys/types.h>
Always provide register_t via <sys/types.h> for glibc and BSD compatibility. Define __BIT_TYPES_DEFINED__ to 1 like glibc for legacy header files. Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
This commit is contained in:
parent
878e65d354
commit
51062c856b
|
@ -36,6 +36,8 @@ typedef __uint32_t u_int32_t;
|
||||||
#if ___int64_t_defined
|
#if ___int64_t_defined
|
||||||
typedef __uint64_t u_int64_t;
|
typedef __uint64_t u_int64_t;
|
||||||
#endif
|
#endif
|
||||||
|
typedef int register_t;
|
||||||
|
#define __BIT_TYPES_DEFINED__ 1
|
||||||
|
|
||||||
#if defined(__rtems__) || defined(__XMK__)
|
#if defined(__rtems__) || defined(__XMK__)
|
||||||
/*
|
/*
|
||||||
|
@ -158,10 +160,6 @@ typedef __ino_t ino_t; /* inode number */
|
||||||
typedef char * addr_t;
|
typedef char * addr_t;
|
||||||
typedef unsigned long vm_offset_t;
|
typedef unsigned long vm_offset_t;
|
||||||
typedef unsigned long vm_size_t;
|
typedef unsigned long vm_size_t;
|
||||||
|
|
||||||
#define __BIT_TYPES_DEFINED__
|
|
||||||
|
|
||||||
typedef int32_t register_t;
|
|
||||||
#endif /* __i386__ && (GO32 || __MSDOS__) */
|
#endif /* __i386__ && (GO32 || __MSDOS__) */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -71,11 +71,6 @@ typedef unsigned long vm_size_t;
|
||||||
typedef void *vm_object_t;
|
typedef void *vm_object_t;
|
||||||
#endif /* __vm_object_t_defined */
|
#endif /* __vm_object_t_defined */
|
||||||
|
|
||||||
#ifndef __register_t_defined
|
|
||||||
#define __register_t_defined
|
|
||||||
typedef __int32_t register_t;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef __addr_t_defined
|
#ifndef __addr_t_defined
|
||||||
#define __addr_t_defined
|
#define __addr_t_defined
|
||||||
typedef char *addr_t;
|
typedef char *addr_t;
|
||||||
|
|
Loading…
Reference in New Issue