aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Eric Andersen <andersen@codepoet.org>2007-02-28 21:18:52 +0000
committerGravatar Eric Andersen <andersen@codepoet.org>2007-02-28 21:18:52 +0000
commitd252f9b126c321e21424fbd584347c06137c3fa3 (patch)
tree5c70111328da9920117be0654cf3698b62cfa15a
parent7313e0095e342f0f5fadeb0c78207c054ae67656 (diff)
downloaduClibc-d252f9b126c321e21424fbd584347c06137c3fa3.tar.gz
uClibc-d252f9b126c321e21424fbd584347c06137c3fa3.tar.bz2
Add a hack for compiling a 32 bit user space with 64 bit kernel on x86_64
-rw-r--r--libc/sysdeps/linux/i386/bits/kernel_types.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/libc/sysdeps/linux/i386/bits/kernel_types.h b/libc/sysdeps/linux/i386/bits/kernel_types.h
index efeb01b03..6609dd312 100644
--- a/libc/sysdeps/linux/i386/bits/kernel_types.h
+++ b/libc/sysdeps/linux/i386/bits/kernel_types.h
@@ -1,10 +1,14 @@
/* Note that we use the exact same include guard #define names
- * as asm/posix_types.h. This will avoid gratuitous conflicts
- * with the posix_types.h kernel header, and will ensure that
+ * as asm/posix_types.h. This will avoid gratuitous conflicts
+ * with the posix_types.h kernel header, and will ensure that
* our private content, and not the kernel header, will win.
* -Erik
*/
-#ifndef __ARCH_I386_POSIX_TYPES_H
+
+/* a hack for compiling a 32 bit user space with 64 bit
+ * kernel on x86_64 */
+#if !defined(__ARCH_I386_POSIX_TYPES_H) && !defined(_ASM_X86_64_POSIX_TYPES_H)
+#define _ASM_X86_64_POSIX_TYPES_H
#define __ARCH_I386_POSIX_TYPES_H
typedef unsigned short __kernel_dev_t;