diff options
Diffstat (limited to 'app-editors/qemacs/files/qemacs-ppc-segfault.patch')
-rw-r--r-- | app-editors/qemacs/files/qemacs-ppc-segfault.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/app-editors/qemacs/files/qemacs-ppc-segfault.patch b/app-editors/qemacs/files/qemacs-ppc-segfault.patch new file mode 100644 index 000000000000..de6c420c5d3b --- /dev/null +++ b/app-editors/qemacs/files/qemacs-ppc-segfault.patch @@ -0,0 +1,39 @@ +--- qe.c.old 2005-03-13 14:37:22.967682048 +1100 ++++ qe.c 2005-03-13 14:37:56.866528640 +1100 +@@ -6165,16 +6165,16 @@ + { NULL }, + }; + +-#if defined(__GNUC__) || defined(__TINYC__) ++/*#if defined(__GNUC__) || defined(__TINYC__) + static inline void init_all_modules(void) + { + int (*initcall)(void); + void **ptr; + + ptr = (void **)&__initcall_first; +- for(;;) { ++ for(;;) {*/ + /* NOTE: if bound checking is on, a '\0' is inserted between +- each initialized 'void *' */ ++ each initialized 'void *' *//* + #if defined(__BOUNDS_CHECKING_ON) + ptr = (void **)((long)ptr + (2 * sizeof(void *))); + #else +@@ -6186,14 +6186,14 @@ + initcall(); + } + } +-#else ++#else*/ + /* cannot use elf sections, so we initialize the modules manually */ + static inline void init_all_modules(void) + { + x11_init(); + c_init(); + } +-#endif ++//#endif + + #ifdef CONFIG_DLL + |