<unistd.h>: Use types which we actually have.
authorSascha Wildner <saw@online.de>
Sat, 13 Feb 2016 09:02:08 +0000 (10:02 +0100)
committerSascha Wildner <saw@online.de>
Sat, 13 Feb 2016 09:02:08 +0000 (10:02 +0100)
This is dead code at the moment because <unistd.h> includes
<sys/types.h>, leading to these types being already defined
at this point. This commit prepares for the day when we
remove <sys/types.h> from all headers which do not actually
need it.

We should probably have __gid_t and __uid_t.

include/unistd.h

index a6535ef..f6fa678 100644 (file)
@@ -43,7 +43,7 @@
 #endif
 
 #ifndef _GID_T_DECLARED
-typedef        __gid_t         gid_t;
+typedef        __uint32_t      gid_t;          /* XXX __gid_t */
 #define        _GID_T_DECLARED
 #endif
 
@@ -68,7 +68,7 @@ typedef       __ssize_t       ssize_t;
 #endif
 
 #ifndef _UID_T_DECLARED
-typedef        __uid_t         uid_t;
+typedef        __uint32_t      uid_t;          /* XXX __uid_t */
 #define        _UID_T_DECLARED
 #endif