mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
cmake: fix check for /proc/self/stat
Using the result of the exists test directly always passes.
This commit is contained in:
parent
af93db668c
commit
8543a4061e
1 changed files with 3 additions and 1 deletions
|
@ -78,7 +78,9 @@ IF(STRUCT_WINSIZE GREATER -1 AND HAVE_TIOCGWINSZ EQUAL 1)
|
|||
ENDIF()
|
||||
SET(CMAKE_EXTRA_INCLUDE_FILES)
|
||||
|
||||
SET(HAVE__PROC_SELF_STAT (EXISTS "/proc/self/stat"))
|
||||
IF(EXISTS "/proc/self/stat")
|
||||
SET(HAVE__PROC_SELF_STAT 1)
|
||||
ENDIF()
|
||||
CHECK_TYPE_SIZE("wchar_t[8]" WCHAR_T_BITS LANGUAGE CXX)
|
||||
|
||||
# Not checked yet: non-varargs tparm ("Solaris tparm kludge")
|
||||
|
|
Loading…
Reference in a new issue