Add BSD guard for ino_t in <sys/types.h>
Introduce internal type __ino_t. Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
This commit is contained in:
committed by
Corinna Vinschen
parent
eeded3c170
commit
e77040b2bf
@ -57,14 +57,6 @@ typedef unsigned long fsblkcnt_t;
|
||||
typedef unsigned long fsfilcnt_t;
|
||||
#endif /* __fsfilcnt_t_defined */
|
||||
|
||||
#ifndef __ino_t_defined
|
||||
#define __ino_t_defined
|
||||
#ifndef __x86_64__
|
||||
typedef __uint32_t __ino32_t;
|
||||
#endif
|
||||
typedef __uint64_t ino_t;
|
||||
#endif /*__ino_t_defined*/
|
||||
|
||||
#if defined (__INSIDE_CYGWIN__) && !defined (__x86_64__)
|
||||
struct __flock32 {
|
||||
short l_type; /* F_RDLCK, F_WRLCK, or F_UNLCK */
|
||||
|
@ -9,6 +9,7 @@
|
||||
typedef __int16_t __dev16_t;
|
||||
typedef __uint16_t __uid16_t;
|
||||
typedef __uint16_t __gid16_t;
|
||||
typedef __uint32_t __ino32_t;
|
||||
#endif
|
||||
|
||||
#define __machine_dev_t_defined
|
||||
@ -20,6 +21,9 @@ typedef __uint32_t __uid_t;
|
||||
#define __machine_gid_t_defined
|
||||
typedef __uint32_t __gid_t;
|
||||
|
||||
#define __machine_ino_t_defined
|
||||
typedef __uint64_t __ino_t;
|
||||
|
||||
#define __machine_key_t_defined
|
||||
typedef long long __key_t;
|
||||
|
||||
|
Reference in New Issue
Block a user