From 07661da3d824585f12d0b5d19cc262115bea979a Mon Sep 17 00:00:00 2001 From: Lyndon Nerenberg Date: Mon, 26 Dec 2011 09:19:35 -0800 Subject: [PATCH] Remove #ifdef around use of sigsetjmp(). --- configure.in | 11 +---------- uip/mhshowsbr.c | 10 ---------- 2 files changed, 1 insertion(+), 20 deletions(-) diff --git a/configure.in b/configure.in index 4cdbfca..0a27c85 100644 --- a/configure.in +++ b/configure.in @@ -487,16 +487,7 @@ AC_CHECK_HEADER([sys/ptem.h], AC_DEFINE(WINSIZE_IN_PTEM,1, dnl --------------- dnl CHECK FUNCTIONS dnl --------------- -AC_CHECK_FUNCS(waitpid wait3 sigaction sigprocmask sigblock sigsetmask \ - sighold sigrelse writev lstat uname tzset mkstemp \ - getutent nl_langinfo mbtowc wcwidth) - -dnl sigsetjmp may be a macro -AC_MSG_CHECKING(for sigsetjmp) -AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include ]], - [[sigsetjmp((void *)0, 0);]])],[AC_DEFINE(HAVE_SIGSETJMP, 1, - [Define to 1 if you have the `sigsetjmp'.]) AC_MSG_RESULT(yes)], - [AC_MSG_RESULT(no)]) +AC_CHECK_FUNCS(writev lstat tzset getutent nl_langinfo) dnl Look for the initgroups() declaration. On AIX 4.[13], Solaris 4.1.3, and dnl ULTRIX 4.2A the function is defined in libc but there's no declaration in diff --git a/uip/mhshowsbr.c b/uip/mhshowsbr.c index d3397ae..efa9ad3 100644 --- a/uip/mhshowsbr.c +++ b/uip/mhshowsbr.c @@ -20,16 +20,6 @@ #include #include -/* - * Just use sigjmp/longjmp on older machines that - * don't have sigsetjmp/siglongjmp. - */ -#ifndef HAVE_SIGSETJMP -# define sigjmp_buf jmp_buf -# define sigsetjmp(env,mask) setjmp(env) -# define siglongjmp(env,val) longjmp(env,val) -#endif - extern int debugsw; int pausesw = 1; -- 1.7.10.4