[K42-discussion] [PATCH] Added another ifdef->undef for offsetof which gets

Donour Sizemore donour at cs.unm.edu
Tue Oct 3 09:11:16 EST 2006


Signed-off-by: Donour Sizemore <donour at milhouse.localdomain>
---
  os/kernel/linux/LinuxBlockDev.C |    4 ++++
  1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/os/kernel/linux/LinuxBlockDev.C 
b/os/kernel/linux/LinuxBlockDev.C
index 70f58e3..423960d 100644
--- a/os/kernel/linux/LinuxBlockDev.C
+++ b/os/kernel/linux/LinuxBlockDev.C
@@ -39,6 +39,10 @@ #include <asm/current.h>
  #undef __KERNEL__ //We don't really use anything lk specific here

  #include <cobj/CObjRootSingleRep.H>
+
+#ifdef offsetof
+#undef offsetof
+#endif
  #include "LinuxBlockDev.H"

  #include <io/PAPageServer.H>
-- 
1.4.1.1




More information about the K42-discussion mailing list