From 2725ca95b23bc59ac7e7d7d52362c369db180671 Mon Sep 17 00:00:00 2001 From: Pavel Chupin Date: Wed, 12 Mar 2014 11:23:49 +0400 Subject: [PATCH] Use [u]int32_t instead of __[u]int32_t in sys/types.h Avoid this error in -ffreestanding mode: sys/types.h:45:1: error: unknown type name '__uint32_t' Change-Id: I826b36873862d1d70b47401f31f4369a77666b8e Signed-off-by: Pavel Chupin --- libc/include/sys/types.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/libc/include/sys/types.h b/libc/include/sys/types.h index f8261f47b..dc847d237 100644 --- a/libc/include/sys/types.h +++ b/libc/include/sys/types.h @@ -42,7 +42,7 @@ typedef __kernel_uid32_t __uid_t; typedef __uid_t uid_t; typedef __kernel_pid_t __pid_t; typedef __pid_t pid_t; -typedef __uint32_t __id_t; +typedef uint32_t __id_t; typedef __id_t id_t; typedef unsigned long blkcnt_t; @@ -63,19 +63,19 @@ typedef __mode_t mode_t; typedef __kernel_key_t __key_t; typedef __key_t key_t; -typedef __uint32_t __ino_t; +typedef uint32_t __ino_t; typedef __ino_t ino_t; -typedef __uint32_t __nlink_t; +typedef uint32_t __nlink_t; typedef __nlink_t nlink_t; typedef void* __timer_t; typedef __timer_t timer_t; -typedef __int32_t __suseconds_t; +typedef int32_t __suseconds_t; typedef __suseconds_t suseconds_t; -typedef __uint32_t __useconds_t; +typedef uint32_t __useconds_t; typedef __useconds_t useconds_t; #if !defined(__LP64__) @@ -113,10 +113,10 @@ typedef .... pthread_t; #if !defined(__LP64__) /* This historical accident means that we had a signed socklen_t on 32-bit architectures. */ -typedef __int32_t __socklen_t; +typedef int32_t __socklen_t; #else /* LP64 still has a 32-bit socklen_t. */ -typedef __uint32_t __socklen_t; +typedef uint32_t __socklen_t; #endif typedef __socklen_t socklen_t; -- 2.11.0