diff --git a/.gitignore b/.gitignore index 38ab6b10..7de13cd9 100644 --- a/.gitignore +++ b/.gitignore @@ -13,3 +13,4 @@ fixtures/space folder/ .vscode/ipch/ yarn.lock prebuilds/ +_codeql_detected_source_root diff --git a/src/unix/pty.cc b/src/unix/pty.cc index a20bde53..9df942ef 100644 --- a/src/unix/pty.cc +++ b/src/unix/pty.cc @@ -131,7 +131,7 @@ SetCloseOnExec(int fd) { static void pty_close_inherited_fds() { // Try close_range() first (Linux 5.9+, glibc 2.34+) - #if defined(SYS_close_range) + #if defined(SYS_close_range) && defined(CLOSE_RANGE_CLOEXEC) if (syscall(SYS_close_range, 3, ~0U, CLOSE_RANGE_CLOEXEC) == 0) { return; }