Skip to contentSkip to conversation

Fix UML signal.c build error

PATCH New Balbir Singh 1 participant 1 message Oct 25, 2007

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix UML signal.c build error

---

 include/asm-x86/sigcontext.h |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
include/asm-x86/sigcontext.h renamed from include/asm-x86/sigcontext.h~uml-fix-sigcontext-build-error +3 -3
diff -puN include/asm-x86/sigcontext.h~uml-fix-sigcontext-build-error include/asm-x86/sigcontext.h
@@ -4,7 +4,7 @@
 #include <linux/compiler.h>
 #include <asm/types.h>
 
-#ifdef __i386__
+#if BITS_PER_LONG == 32
 /*
  * As documented in the iBCS2 standard..
  *
@@ -83,7 +83,7 @@ struct sigcontext {
 	unsigned long cr2;
 };
 
-#else /* __i386__ */
+#else /* BITS_PER_LONG == 32 */
 
 /* FXSAVE frame */
 /* Note: reserved1/2 may someday contain valuable data. Always save/restore
@@ -133,6 +133,6 @@ struct sigcontext {
 	unsigned long reserved1[8];
 };
 
-#endif /* !__i386__ */
+#endif /* !BITS_PER_LONG == 32 */
 
 #endif

_

Signature · 4 lines
	Warm Regards,
	Balbir Singh
	Linux Technology Center
	IBM, ISTL