Merge "libutil: fix conditional for close_range availability" into main
This commit is contained in:
commit
f1533160aa
1 changed files with 1 additions and 1 deletions
|
@ -228,7 +228,7 @@ void closeExtraFDs()
|
|||
auto closeRange = [](unsigned int first, unsigned int last, int flags) -> int {
|
||||
// musl does not have close_range as of 2024-08-10
|
||||
// patch: https://www.openwall.com/lists/musl/2024/08/01/9
|
||||
#ifdef HAVE_CLOSE_RANGE
|
||||
#if HAVE_CLOSE_RANGE
|
||||
return close_range(first, last, flags);
|
||||
#else
|
||||
return syscall(SYS_close_range, first, last, flags);
|
||||
|
|
Loading…
Reference in a new issue