Browse Source

Aurelien Jacobs writes:
The kernel include guard that uClibc rely on for POSIX_TYPES_H on ppc
has changed in linux-2.6.15.
Here is a trivial patch to fix this issue.

Mike Frysinger 19 years ago
parent
commit
394f3fb343
1 changed files with 3 additions and 1 deletions
  1. 3 1
      libc/sysdeps/linux/powerpc/bits/kernel_types.h

+ 3 - 1
libc/sysdeps/linux/powerpc/bits/kernel_types.h

@@ -4,9 +4,11 @@
  * our private content, and not the kernel header, will win.
  *  -Erik
  */
-#if ! defined _PPC_POSIX_TYPES_H && ! defined _PPC64_POSIX_TYPES_H
+#if ! defined _PPC_POSIX_TYPES_H && ! defined _PPC64_POSIX_TYPES_H && \
+    ! defined _ASM_POWERPC_POSIX_TYPES_H
 #define _PPC_POSIX_TYPES_H
 #define _PPC64_POSIX_TYPES_H
+#define _ASM_POWERPC_POSIX_TYPES_H
 
 # if __WORDSIZE == 64
 typedef unsigned int	__kernel_dev_t;