From 6726862e9a250e7ade32ba7d150d73352b4ef5c8 Mon Sep 17 00:00:00 2001 From: Calin Juravle Date: Tue, 6 May 2014 14:37:56 +0100 Subject: [PATCH] Fix ino_t and suseconds_t Align ino_t and suseconds_t definitions with kernel and OpenBSD upstream. Bug: 14583346 Bug: 12875898 Change-Id: I0d97c6b4fc85b261472575290e6f6f2df1c8a36a --- libc/include/sys/types.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/libc/include/sys/types.h b/libc/include/sys/types.h index dc847d237..9a76ad260 100644 --- a/libc/include/sys/types.h +++ b/libc/include/sys/types.h @@ -63,7 +63,7 @@ typedef __mode_t mode_t; typedef __kernel_key_t __key_t; typedef __key_t key_t; -typedef uint32_t __ino_t; +typedef __kernel_ino_t __ino_t; typedef __ino_t ino_t; typedef uint32_t __nlink_t; @@ -72,9 +72,10 @@ typedef __nlink_t nlink_t; typedef void* __timer_t; typedef __timer_t timer_t; -typedef int32_t __suseconds_t; +typedef __kernel_suseconds_t __suseconds_t; typedef __suseconds_t suseconds_t; +/* useconds_t is 32-bit on both LP32 and LP64. */ typedef uint32_t __useconds_t; typedef __useconds_t useconds_t;