From c5d6bea6d9f98a593890f9694ef1575d744e5a32 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Mon, 11 May 2026 09:10:11 +0000 Subject: Prepare for 2.15.0.1; add selectshorttimeout sysdeps (yay MacOS) --- configure | 6 ++++-- doc/index.html | 4 ++-- doc/license.html | 2 +- doc/upgrade.html | 6 ++++++ package/deps.mak | 2 +- package/info | 2 +- src/libstddjb/iopause_select.c | 8 ++++++++ src/sysdeps/tryselectshorttimeout.c | 41 +++++++++++++++++++++++++++++++++++++ 8 files changed, 64 insertions(+), 7 deletions(-) create mode 100644 src/sysdeps/tryselectshorttimeout.c diff --git a/configure b/configure index 53d4aa7..7105869 100755 --- a/configure +++ b/configure @@ -52,9 +52,10 @@ Sysdeps autodetection override: --with-sysdep-K=V assume sysdep K has the value V [autodetected] List of mandatory sysdeps to provide by hand for cross-compiling: - devurandom (yes|no): =yes if you have a working /dev/urandom - posixspawnearlyreturn (yes|no): =yes if you have an old glibc or otherwise bad posix_spawn + devurandom (yes|no): =yes if the target has a working /dev/urandom + posixspawnearlyreturn (yes|no): =yes if the target has an old glibc or otherwise bad posix_spawn procselfexe (path|none): =path if you can get the executable name via readlink(path) + selectshorttimeout (yes|no): =yes if the target's select() fails on very long timeouts (MacOS, old OpenBSD) EOF exit 0 } @@ -733,6 +734,7 @@ choose cl pthreadmutexclocklock 'pthread_mutex_clocklock()' $pthread_lib choose clr devurandom '/dev/urandom' choose clr posixspawnearlyreturn 'posix_spawn() return early' $spawn_lib choosevalue procselfexe '/proc/self/exe' /proc/self/exe /proc/curproc/exe /proc/curproc/file /proc/self/path/a.out +choose clr selectshorttimeout 'a select() that fails on long timeouts' # Finally, produce config.mak and config.h diff --git a/doc/index.html b/doc/index.html index aded07c..613920e 100644 --- a/doc/index.html +++ b/doc/index.html @@ -61,8 +61,8 @@ with a standard C development environment

Download