[klibc] [PATCH] Get klibc building under post-2.5.68 kernels
Bryan O'Sullivan
bos at serpentine.com
Mon Apr 28 15:57:58 PDT 2003
Recent BK kernels break the klibc build, because of proliferating use of
u8, u16, and friends. The particular offender in this case is
include/asm/system.h, which uses u8 in the new alt_instr struct.
This patch "fixes" the breakage, albeit gracelessly. I'm agnostic on
whether it's the Right Thing. It might be saner to simply have a series
of definitions, of the form:
typedef __u8 u8;
However, this is prone to creeping breakage as the kernel leaks more
data types into klibc's view.
<b
-------------- next part --------------
--- a/klibc/include/sys/types.h Mon Apr 28 14:44:20 2003
+++ b/klibc/include/sys/types.h Mon Apr 28 14:44:20 2003
@@ -15,7 +15,9 @@
typedef ptrdiff_t ssize_t;
#include <linux/posix_types.h>
+#define __KERNEL__
#include <asm/types.h>
+#undef __KERNEL__
/* Keeps linux/types.h from getting included elsewhere */
#define _LINUX_TYPES_H
More information about the klibc
mailing list