mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-26 05:45:22 +08:00
Define _REENTRANT
This enables thread-safe errno on Solaris and its descendants. Fixes #5611
This commit is contained in:
parent
50f6fa048e
commit
e234856190
@ -129,11 +129,14 @@ SET_SOURCE_FILES_PROPERTIES(src/fish_version.cpp
|
||||
|
||||
OPTION(INTERNAL_WCWIDTH "use fallback wcwidth" ON)
|
||||
IF(INTERNAL_WCWIDTH)
|
||||
add_definitions(-DHAVE_BROKEN_WCWIDTH=1)
|
||||
ADD_DEFINITIONS(-DHAVE_BROKEN_WCWIDTH=1)
|
||||
ELSE()
|
||||
add_definitions(-DHAVE_BROKEN_WCWIDTH=0)
|
||||
ADD_DEFINITIONS(-DHAVE_BROKEN_WCWIDTH=0)
|
||||
ENDIF()
|
||||
|
||||
# Enable thread-safe errno on Solaris (#5611)
|
||||
ADD_DEFINITIONS(-D_REENTRANT)
|
||||
|
||||
# Set up PCRE2
|
||||
INCLUDE(cmake/PCRE2.cmake)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user