mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
612 B

  1. --- ./eftest.c.orig 2004-09-07 15:43:00.320833176 +0200
  2. +++ ./eftest.c 2004-09-07 15:44:44.374014688 +0200
  3. @@ -24,7 +24,7 @@
  4. extern int EF_PROTECT_BELOW;
  5. extern int EF_ALIGNMENT;
  6. -static jmp_buf env;
  7. +static sigjmp_buf env;
  8. /*
  9. * There is still too little standardization of the arguments and return
  10. @@ -40,13 +40,13 @@
  11. )
  12. {
  13. signal(PAGE_PROTECTION_VIOLATED_SIGNAL, SIG_DFL);
  14. - longjmp(env, 1);
  15. + siglongjmp(env, 1);
  16. }
  17. static int
  18. gotSegmentationFault(int (*test)(void))
  19. {
  20. - if ( setjmp(env) == 0 ) {
  21. + if ( sigsetjmp(env, 1) == 0 ) {
  22. int status;
  23. signal(PAGE_PROTECTION_VIOLATED_SIGNAL