File tree Expand file tree Collapse file tree 4 files changed +11
-1
lines changed
.github/actions/spelling/allow Expand file tree Collapse file tree 4 files changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ ENDPROPERTIES
1010FONTBOUNDINGBOX
1111FreeBSD
1212LASTEXITCODE
13+ RTX
1314OPENCONSOLE
1415OpenBSD
1516SEMA
@@ -32,6 +33,7 @@ copy'n'paste
3233copyable
3334crossfade
3435dbus
36+ flamegraphs
3537gha
3638ilammy
3739lazygit
5557unk
5658urg
5759vswhere
60+ winget
5861zypper
Original file line number Diff line number Diff line change 107107 <release version =" 0.6.3" urgency =" medium" type =" development" >
108108 <description >
109109 <ul >
110+ <li >Fixes build failure on Alpine Linux (musl libc) due to missing close_range() function (#1879)</li >
110111 <li >Fixes Insert Replace Mode (IRM, CSI 4 h) not shifting text right on character insertion (#1877)</li >
111112 <li >Fixes Home/End key encoding in Kitty keyboard protocol (extended keyboard input generator)</li >
112113 <li >Fixes glyph scaling and vertical centering of colored emoji</li >
Original file line number Diff line number Diff line change @@ -57,6 +57,9 @@ if(LINUX)
5757endif ()
5858
5959if (UNIX )
60+ include (CheckFunctionExists)
61+ check_function_exists(close_range HAVE_CLOSE_RANGE)
62+
6063 list (APPEND vtpty_LIBRARIES util)
6164 list (APPEND vtpty_SOURCES UnixPty.cpp UnixUtils.cpp)
6265 list (APPEND vtpty_SOURCES UnixPty.h UnixUtils.h)
@@ -71,6 +74,9 @@ set_target_properties(vtpty PROPERTIES CXX_CLANG_TIDY "${CLANG_TIDY_EXE}")
7174if (CONTOUR_WITH_UTEMPTER)
7275 target_compile_definitions (vtpty PRIVATE UTEMPTER=1)
7376endif ()
77+ if (HAVE_CLOSE_RANGE)
78+ target_compile_definitions (vtpty PRIVATE HAVE_CLOSE_RANGE)
79+ endif ()
7480if (_include_SshSession_module)
7581 target_compile_definitions (vtpty PUBLIC VTPTY_LIBSSH2=1)
7682endif ()
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ namespace
8080
8181 void closeAllFileDescriptorsAbove (int keepFd)
8282 {
83- #if defined(__linux__) || defined(__FreeBSD__ )
83+ #if defined(HAVE_CLOSE_RANGE )
8484 if (close_range (keepFd + 1 , ~0U , 0 ) == 0 )
8585 return ;
8686#endif
You can’t perform that action at this time.
0 commit comments