mirror of
https://github.com/moparisthebest/curl
synced 2024-12-22 08:08:50 -05:00
Only define alarmfunc when signals are used
This commit is contained in:
parent
51ba24991c
commit
459e67b2a7
12
lib/url.c
12
lib/url.c
@ -150,10 +150,6 @@ void idn_free (void *ptr); /* prototype from idn-free.h, not provided by
|
||||
/* The last #include file should be: */
|
||||
#include "memdebug.h"
|
||||
|
||||
#ifdef __SYMBIAN32__
|
||||
#undef SIGALRM
|
||||
#endif
|
||||
|
||||
/* Local static prototypes */
|
||||
static long ConnectionKillOne(struct SessionHandle *data);
|
||||
static bool ConnectionExists(struct SessionHandle *data,
|
||||
@ -178,13 +174,10 @@ static void flush_cookies(struct SessionHandle *data, int cleanup);
|
||||
#define verboseconnect(x) do { } while (0)
|
||||
#endif
|
||||
|
||||
#ifndef USE_ARES
|
||||
/* not for ares builds */
|
||||
|
||||
#ifndef WIN32
|
||||
/* not for WIN32 builds */
|
||||
|
||||
#ifdef SIGALRM
|
||||
#if defined(HAVE_ALARM) && defined(SIGALRM) && !defined(USE_ARES)
|
||||
/*
|
||||
* This signal handler jumps back into the main libcurl code and continues
|
||||
* execution. This effectively causes the remainder of the application to run
|
||||
@ -200,9 +193,8 @@ RETSIGTYPE alarmfunc(int sig)
|
||||
#endif
|
||||
return;
|
||||
}
|
||||
#endif /* SIGALRM */
|
||||
#endif /* HAVE_ALARM && SIGALRM && !USE_ARES */
|
||||
#endif /* WIN32 */
|
||||
#endif /* USE_ARES */
|
||||
|
||||
/*
|
||||
* Protocol table.
|
||||
|
Loading…
Reference in New Issue
Block a user