Commit 85e2e96f authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

corrected the signal handler

parent be35b3ad
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -143,13 +143,13 @@ static unsigned int ConnectionStore(struct SessionHandle *data,
#ifndef RETSIGTYPE
#define RETSIGTYPE void
#endif
extern sigjmp_buf curl_jmpenv;
static
RETSIGTYPE alarmfunc(int signal)
{
  /* this is for "-ansi -Wall -pedantic" to stop complaining!   (rabe) */
  (void)signal;
#ifdef HAVE_SIGSETJMP
  extern sigjmp_buf curl_jmpenv;
  siglongjmp(curl_jmpenv, 1);
#endif
  return;