From: Christophe R. <cr...@us...> - 2004-01-09 10:44:59
|
Update of /cvsroot/sbcl/sbcl/tools-for-build In directory sc8-pr-cvs1:/tmp/cvs-serv2239/tools-for-build Modified Files: where-is-mcontext.c Log Message: 0.8.7.12: Merge patch (Eric Marsden sbcl-devel 2004-01-08) for build on PPC/Linux ... less fragile than my version, so in it goes Index: where-is-mcontext.c =================================================================== RCS file: /cvsroot/sbcl/sbcl/tools-for-build/where-is-mcontext.c,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- where-is-mcontext.c 3 Oct 2003 10:59:34 -0000 1.1 +++ where-is-mcontext.c 9 Jan 2004 10:44:55 -0000 1.2 @@ -38,15 +38,10 @@ #ifndef PPC_LINUX_MCONTEXT_H\n\ #define PPC_LINUX_MCONTEXT_H\n\n"); - switch (offsetof(ucontext_t,uc_mcontext)) { - case 192: + if (offsetof(ucontext_t,uc_mcontext) > 40) { printf("#define GLIBC232_STYLE_UCONTEXT\n\n"); - break; - case 20: + } else { printf("#define GLIBC231_STYLE_UCONTEXT\n\n"); - break; - default: - printf("#error \"Unknown PPC/Linux ucontext layout\"\n\n"); } printf("\ #endif /* PPC_LINUX_MCONTEXT_H */\n"); |