forked from lix-project/lix
Compare commits
2 commits
main
...
release-2.
Author | SHA1 | Date | |
---|---|---|---|
ed51a172c6 | |||
Artemis Tosini | ca2b514e20 |
|
@ -417,7 +417,7 @@ check_funcs = [
|
||||||
'strsignal',
|
'strsignal',
|
||||||
'sysconf',
|
'sysconf',
|
||||||
]
|
]
|
||||||
if target_machine.kernel() in ['linux', 'freebsd']
|
if is_linux or is_freebsd
|
||||||
# musl does not have close_range as of 2024-08-10
|
# musl does not have close_range as of 2024-08-10
|
||||||
# patch: https://www.openwall.com/lists/musl/2024/08/01/9
|
# patch: https://www.openwall.com/lists/musl/2024/08/01/9
|
||||||
check_funcs += [ 'close_range' ]
|
check_funcs += [ 'close_range' ]
|
||||||
|
|
|
@ -228,7 +228,7 @@ void closeExtraFDs()
|
||||||
auto closeRange = [](unsigned int first, unsigned int last, int flags) -> int {
|
auto closeRange = [](unsigned int first, unsigned int last, int flags) -> int {
|
||||||
// musl does not have close_range as of 2024-08-10
|
// musl does not have close_range as of 2024-08-10
|
||||||
// patch: https://www.openwall.com/lists/musl/2024/08/01/9
|
// 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);
|
return close_range(first, last, flags);
|
||||||
#else
|
#else
|
||||||
return syscall(SYS_close_range, first, last, flags);
|
return syscall(SYS_close_range, first, last, flags);
|
||||||
|
|
Loading…
Reference in a new issue