mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Merge pull request #2715 from equalsraf/tb-platform-thingies
[RDY] Small fixes for platform checks Reviewed-by: Scott Prager <splinterofchaos@gmail.com> Reviewed-by: Michael Reed <m.reed@mykolab.com>
This commit is contained in:
commit
8c27b0dd45
@ -50,23 +50,17 @@ if(JEMALLOC_FOUND)
|
|||||||
set(HAVE_JEMALLOC 1)
|
set(HAVE_JEMALLOC 1)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
check_function_exists(lstat HAVE_LSTAT)
|
|
||||||
if(NOT HAVE_LSTAT)
|
|
||||||
# os_unix.c uses lstat.c
|
|
||||||
message(SEND_ERROR "lstat() function not found on your system.")
|
|
||||||
endif()
|
|
||||||
check_function_exists(putenv HAVE_PUTENV)
|
check_function_exists(putenv HAVE_PUTENV)
|
||||||
check_function_exists(opendir HAVE_OPENDIR)
|
check_function_exists(opendir HAVE_OPENDIR)
|
||||||
check_function_exists(readlink HAVE_READLINK)
|
check_function_exists(readlink HAVE_READLINK)
|
||||||
check_function_exists(setenv HAVE_SETENV)
|
check_function_exists(setenv HAVE_SETENV)
|
||||||
if(NOT HAVE_SETENV)
|
if(UNIX AND NOT HAVE_SETENV)
|
||||||
message(SEND_ERROR "setenv() function not found on your system.")
|
message(SEND_ERROR "setenv() function not found on your system.")
|
||||||
endif()
|
endif()
|
||||||
check_function_exists(unsetenv HAVE_UNSETENV)
|
check_function_exists(unsetenv HAVE_UNSETENV)
|
||||||
check_function_exists(setpgid HAVE_SETPGID)
|
check_function_exists(setpgid HAVE_SETPGID)
|
||||||
check_function_exists(setsid HAVE_SETSID)
|
check_function_exists(setsid HAVE_SETSID)
|
||||||
check_function_exists(sigaction HAVE_SIGACTION)
|
check_function_exists(sigaction HAVE_SIGACTION)
|
||||||
check_function_exists(sigvec HAVE_SIGVEC)
|
|
||||||
check_function_exists(strcasecmp HAVE_STRCASECMP)
|
check_function_exists(strcasecmp HAVE_STRCASECMP)
|
||||||
check_function_exists(strncasecmp HAVE_STRNCASECMP)
|
check_function_exists(strncasecmp HAVE_STRNCASECMP)
|
||||||
check_function_exists(utime HAVE_UTIME)
|
check_function_exists(utime HAVE_UTIME)
|
||||||
|
@ -27,10 +27,8 @@
|
|||||||
#cmakedefine HAVE_LANGINFO_H
|
#cmakedefine HAVE_LANGINFO_H
|
||||||
#cmakedefine HAVE_LIBGEN_H
|
#cmakedefine HAVE_LIBGEN_H
|
||||||
#cmakedefine HAVE_LOCALE_H
|
#cmakedefine HAVE_LOCALE_H
|
||||||
#cmakedefine HAVE_LSTAT
|
|
||||||
#cmakedefine HAVE_NL_LANGINFO_CODESET
|
#cmakedefine HAVE_NL_LANGINFO_CODESET
|
||||||
#cmakedefine HAVE_NL_MSG_CAT_CNTR
|
#cmakedefine HAVE_NL_MSG_CAT_CNTR
|
||||||
#define HAVE_OSPEED 1
|
|
||||||
#cmakedefine HAVE_PUTENV
|
#cmakedefine HAVE_PUTENV
|
||||||
#cmakedefine HAVE_PWD_H
|
#cmakedefine HAVE_PWD_H
|
||||||
#cmakedefine HAVE_READLINK
|
#cmakedefine HAVE_READLINK
|
||||||
@ -41,7 +39,6 @@
|
|||||||
#cmakedefine HAVE_SETPGID
|
#cmakedefine HAVE_SETPGID
|
||||||
#cmakedefine HAVE_SETSID
|
#cmakedefine HAVE_SETSID
|
||||||
#cmakedefine HAVE_SIGACTION
|
#cmakedefine HAVE_SIGACTION
|
||||||
#cmakedefine HAVE_SIGVEC
|
|
||||||
#cmakedefine HAVE_STRCASECMP
|
#cmakedefine HAVE_STRCASECMP
|
||||||
#cmakedefine HAVE_STRINGS_H
|
#cmakedefine HAVE_STRINGS_H
|
||||||
#cmakedefine HAVE_STRNCASECMP
|
#cmakedefine HAVE_STRNCASECMP
|
||||||
@ -51,7 +48,6 @@
|
|||||||
#cmakedefine HAVE_SYS_UTSNAME_H
|
#cmakedefine HAVE_SYS_UTSNAME_H
|
||||||
#cmakedefine HAVE_SYS_WAIT_H
|
#cmakedefine HAVE_SYS_WAIT_H
|
||||||
#cmakedefine HAVE_UNISTD_H
|
#cmakedefine HAVE_UNISTD_H
|
||||||
#define HAVE_UP_BC_PC 1
|
|
||||||
#cmakedefine HAVE_UTIME
|
#cmakedefine HAVE_UTIME
|
||||||
#cmakedefine HAVE_UTIME_H
|
#cmakedefine HAVE_UTIME_H
|
||||||
#cmakedefine HAVE_UTIMES
|
#cmakedefine HAVE_UTIMES
|
||||||
|
Loading…
Reference in New Issue
Block a user