Recent SH kernel headers merge 32-bit and 64-bit headers, changing the 
include guards on asm/posix_types.h in the process.  Does this patch seem 
OK to commit to fix the resulting uClibc build failures?

(I have not tried building for SH64 and do not know if that needs a 
similar fix.)

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;

-- 
Joseph S. Myers
[email protected]
_______________________________________________
uClibc mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/uclibc

Reply via email to