mirror of
https://github.com/curl/curl.git
synced 2026-06-09 02:54:14 +03:00
error on inability to use ALARMs
just a check on our CI platforms
This commit is contained in:
parent
87b0ee0687
commit
64ff6a9948
2 changed files with 22 additions and 1 deletions
|
|
@ -37,6 +37,7 @@
|
|||
#define curl_simple_lock_unlock(m) ReleaseSRWLockExclusive(m)
|
||||
|
||||
#elif defined(HAVE_ATOMIC) && defined(HAVE_STDATOMIC_H)
|
||||
|
||||
#include <stdatomic.h>
|
||||
#ifdef HAVE_SCHED_YIELD
|
||||
#include <sched.h>
|
||||
|
|
@ -61,7 +62,7 @@
|
|||
#define HAVE_BUILTIN_IA32_PAUSE
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#endif /* !__INTEL_COMPILER */
|
||||
|
||||
static CURL_INLINE void curl_simple_lock_lock(curl_simple_lock *lock)
|
||||
{
|
||||
|
|
|
|||
20
lib/hostip.c
20
lib/hostip.c
|
|
@ -78,6 +78,26 @@
|
|||
#define USE_ALARM_TIMEOUT
|
||||
#endif
|
||||
|
||||
#ifndef USE_ALARM_TIMEOUT
|
||||
#ifndef CURLRES_SYNCH
|
||||
/* disabling USE_ALARM_TIMEOUT because we are not using
|
||||
the SYNCH resolver is fine */
|
||||
#endif
|
||||
#ifndef HAVE_ALARM
|
||||
#error "USE_ALARM_TIMEOUT disabled, HAVE_ALARM not defined"
|
||||
#endif
|
||||
#ifndef SIGALRM
|
||||
#error "USE_ALARM_TIMEOUT disabled, SIGALRM not defined"
|
||||
#endif
|
||||
#ifndef HAVE_SIGSETJMP
|
||||
#error "USE_ALARM_TIMEOUT disabled, HAVE_SIGSETJMP not defined"
|
||||
#endif
|
||||
#ifndef GLOBAL_INIT_IS_THREADSAFE
|
||||
#error "USE_ALARM_TIMEOUT disabled, GLOBAL_INIT_IS_THREADSAFE not defined"
|
||||
#endif
|
||||
#endif /* !USE_ALARM_TIMEOUT */
|
||||
|
||||
|
||||
#define MAX_HOSTCACHE_LEN (255 + 7) /* max FQDN + colon + port number + zero */
|
||||
|
||||
#define MAX_DNS_CACHE_SIZE 29999
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue