[git commit 0_9_30] Fix SH bits/kernel_types.h for new kernel headers.

Joseph Myers joseph at codesourcery.com
Fri Oct 16 09:38:53 UTC 2009


commit: http://git.uclibc.org/uClibc/commit/?id=0b57f4f64cdf103b426b11dffad22b4ee7a81d1f
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/0_9_30

Recent SH kernel headers merge 32-bit and 64-bit headers, changing the
include guards on asm/posix_types.h in the process; update uClibc code
depending on those include guards.

Signed-off-by: Joseph Myers <joseph at codesourcery.com>
---
 libc/sysdeps/linux/sh/bits/kernel_types.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/libc/sysdeps/linux/sh/bits/kernel_types.h b/libc/sysdeps/linux/sh/bits/kernel_types.h
index 7d55cf5..f96e9fa 100644
--- a/libc/sysdeps/linux/sh/bits/kernel_types.h
+++ b/libc/sysdeps/linux/sh/bits/kernel_types.h
@@ -4,8 +4,9 @@
  * our private content, and not the kernel header, will win.
  *  -Erik
  */
-#ifndef __ASM_SH_POSIX_TYPES_H
+#if !defined __ASM_SH_POSIX_TYPES_H && !defined __ASM_SH_POSIX_TYPES_32_H
 #define __ASM_SH_POSIX_TYPES_H
+#define __ASM_SH_POSIX_TYPES_32_H
 
 typedef unsigned short	__kernel_dev_t;
 typedef unsigned long	__kernel_ino_t;
-- 
1.6.3.3



More information about the uClibc-cvs mailing list