diff options
Diffstat (limited to 'posix/sys')
-rw-r--r-- | posix/sys/types.h | 28 | ||||
-rw-r--r-- | posix/sys/wait.h | 5 |
2 files changed, 28 insertions, 5 deletions
diff --git a/posix/sys/types.h b/posix/sys/types.h index d48e0d23eb..113dd1415d 100644 --- a/posix/sys/types.h +++ b/posix/sys/types.h @@ -39,25 +39,40 @@ typedef __u_quad_t u_quad_t; typedef __fsid_t fsid_t; #endif -typedef __dev_t dev_t; -typedef __mode_t mode_t; -typedef __nlink_t nlink_t; typedef __loff_t loff_t; -#ifndef __USE_FILE_OFFSET64 +#ifndef ino_t +# ifndef __USE_FILE_OFFSET64 typedef __ino_t ino_t; -#else +# else typedef __ino64_t ino_t; +# endif +# define ino_t ino_t #endif #ifdef __USE_LARGEFILE64 typedef __ino64_t ino64_t; #endif +#ifndef dev_t +typedef __dev_t dev_t; +# define dev_t dev_t +#endif + #ifndef gid_t typedef __gid_t gid_t; # define gid_t gid_t #endif +#ifndef mode_t +typedef __mode_t mode_t; +# define mode_t mode_t +#endif + +#ifndef nlink_t +typedef __nlink_t nlink_t; +# define nlink_t nlink_t +#endif + #ifndef uid_t typedef __uid_t uid_t; # define uid_t uid_t @@ -99,6 +114,9 @@ typedef __caddr_t caddr_t; typedef __key_t key_t; #endif +#ifdef __USE_XOPEN +# define __need_clock_t +#endif #define __need_time_t #include <time.h> diff --git a/posix/sys/wait.h b/posix/sys/wait.h index e663f41e05..ed904d909b 100644 --- a/posix/sys/wait.h +++ b/posix/sys/wait.h @@ -29,6 +29,11 @@ __BEGIN_DECLS #include <bits/types.h> +#if defined __USE_UNIX98 && !defined pid_t +typedef __pid_t pid_t; +# define pid_t pid_t +#endif + /* This will define the `W*' macros for the flag bits to `waitpid', `wait3', and `wait4'. */ #include <bits/waitflags.h> |