error on inability to use ALARMs

just a check on our CI platforms
This commit is contained in:
Stefan Eissing 2025-08-12 09:33:12 +02:00
parent 87b0ee0687
commit 64ff6a9948
No known key found for this signature in database
2 changed files with 22 additions and 1 deletions

View file

@ -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)
{

View file

@ -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