projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix misordered typedefs in ppc signal.h
[musl]
/
include
/
sys
/
types.h
diff --git
a/include/sys/types.h
b/include/sys/types.h
index
18433f8
..
7378b60
100644
(file)
--- a/
include/sys/types.h
+++ b/
include/sys/types.h
@@
-4,6
+4,8
@@
extern "C" {
#endif
extern "C" {
#endif
+#include <features.h>
+
#define __NEED_ino_t
#define __NEED_dev_t
#define __NEED_uid_t
#define __NEED_ino_t
#define __NEED_dev_t
#define __NEED_uid_t
@@
-58,7
+60,7
@@
typedef __uint16_t u_int16_t;
typedef __uint32_t u_int32_t;
typedef __uint64_t u_int64_t;
typedef __uint32_t u_int32_t;
typedef __uint64_t u_int64_t;
-#if
def _GNU_SOURCE
+#if
defined(_GNU_SOURCE) || defined(_BSD_SOURCE)
typedef char *caddr_t;
typedef unsigned char u_char;
typedef unsigned short u_short, ushort;
typedef char *caddr_t;
typedef unsigned char u_char;
typedef unsigned short u_short, ushort;
@@
-72,6
+74,15
@@
typedef long register_t;
#include <sys/sysmacros.h>
#endif
#include <sys/sysmacros.h>
#endif
+#if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE)
+#define blksize64_t blksize_t
+#define blkcnt64_t blkcnt_t
+#define fsblkcnt64_t fsblkcnt_t
+#define fsfilcnt64_t fsfilcnt_t
+#define ino64_t ino_t
+#define off64_t off_t
+#endif
+
#ifdef __cplusplus
}
#endif
#ifdef __cplusplus
}
#endif