[K42-discussion] [PATCH] lkKernIncs include multiple files that define offsetof without checks. Added a check to undef it if it was already defined. This indicates that the includes should be scrutinized more closely, but for now it works.
Donour Sizemore
donour at cs.unm.edu
Tue Oct 3 09:10:38 EST 2006
Signed-off-by: Donour Sizemore <donour at milhouse.localdomain>
---
os/kernel/linux/lkKernIncs.H | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/os/kernel/linux/lkKernIncs.H b/os/kernel/linux/lkKernIncs.H
index 6ec224b..e98d5de 100644
--- a/os/kernel/linux/lkKernIncs.H
+++ b/os/kernel/linux/lkKernIncs.H
@@ -14,6 +14,9 @@ #define __LK_KERN_INCS_H_
*****************************************************************************/
#include <lk/fixup.H>
+#ifdef offsetof
+#undef offsetof
+#endif
#include <kernIncs.H>
--
1.4.1.1
More information about the K42-discussion
mailing list