Blame SOURCES/ElectricFence-2.0.5-longjmp.patch

94c734
--- ElectricFence-2.0.5/eftest.c.ewt	Tue Jun  2 09:25:10 1998
94c734
+++ ElectricFence-2.0.5/eftest.c	Tue Jun  2 09:24:58 1998
94c734
@@ -24,7 +24,7 @@
94c734
 extern int	EF_PROTECT_BELOW;
94c734
 extern int	EF_ALIGNMENT;
94c734
 
94c734
-static jmp_buf	env;
94c734
+static sigjmp_buf	env;
94c734
 
94c734
 /*
94c734
  * There is still too little standardization of the arguments and return
94c734
@@ -40,13 +40,13 @@
94c734
 )
94c734
  {
94c734
 	signal(PAGE_PROTECTION_VIOLATED_SIGNAL, SIG_DFL);
94c734
-	longjmp(env, 1);
94c734
+	siglongjmp(env, 1);
94c734
 }
94c734
 
94c734
 static int
94c734
 gotSegmentationFault(int (*test)(void))
94c734
 {
94c734
-	if ( setjmp(env) == 0 ) {
94c734
+	if ( sigsetjmp(env, 1) == 0 ) {
94c734
 		int			status;
94c734
 
94c734
 		signal(PAGE_PROTECTION_VIOLATED_SIGNAL