From ad4522348870e01f3d95eec2dd4dc008410d4cd8 Mon Sep 17 00:00:00 2001 From: markus schnalke Date: Mon, 26 Mar 2012 23:07:24 +0200 Subject: [PATCH] Remove #ifdef around use of sigsetjmp(). Merged from nmh. Thanks to Lyndon Nerenberg. --- configure.ac | 7 ------- uip/mhshowsbr.c | 10 ---------- 2 files changed, 17 deletions(-) diff --git a/configure.ac b/configure.ac index 1eb0fdc..ac57b9c 100644 --- a/configure.ac +++ b/configure.ac @@ -364,13 +364,6 @@ AC_CHECK_FUNCS(sigaction sigprocmask sigblock sigsetmask \ sighold sigrelse lstat tzset \ 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)]) - 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 dnl any system header. diff --git a/uip/mhshowsbr.c b/uip/mhshowsbr.c index 38167c8..217e890 100644 --- a/uip/mhshowsbr.c +++ b/uip/mhshowsbr.c @@ -19,16 +19,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 serialsw = 0; -- 1.7.10.4