From 2ecc164ae9b8062e29faf5eca491669e2741cab3 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Fri, 8 Nov 2013 14:38:12 -0800 Subject: [PATCH] Remove the dependency on the non-uapi __kernel_nlink_t. The kernel doesn't have an nlink_t; it just uses the equivalent of uint32_t. We already had a usable __nlink_t in the C library, so let's just define our nlink_t in terms of __nlink_t, which is what __nlink_t was meant for anyway. Note that our struct stat just follows the kernel, and doesn't refer to nlink_t anyway. Change-Id: I2a56e418e42404b1741b08c50554b03c11caebae --- libc/include/sys/types.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libc/include/sys/types.h b/libc/include/sys/types.h index 8b7fea869..bb4a9d433 100644 --- a/libc/include/sys/types.h +++ b/libc/include/sys/types.h @@ -59,7 +59,6 @@ typedef __kernel_id_t id_t; typedef __kernel_ino_t ino_t; typedef __kernel_key_t key_t; typedef __kernel_mode_t mode_t; -typedef __kernel_nlink_t nlink_t; #ifndef _OFF_T_DEFINED_ #define _OFF_T_DEFINED_ typedef __kernel_off_t off_t; @@ -69,6 +68,8 @@ typedef loff_t off64_t; typedef __kernel_pid_t pid_t; +typedef __nlink_t nlink_t; + /* while POSIX wants these in , we * declare then in instead */ #if 0