aboutsummaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorMichael Reed <m.reed@mykolab.com>2016-01-11 01:37:15 -0500
committerMichael Reed <m.reed@mykolab.com>2016-01-12 12:26:15 -0500
commitf65d58907d9ff613294c496fb54cc0e9c8e6ad73 (patch)
tree886d01223fa0a6f63f8bda0d9f0ca7e1e2c31a4f /config
parenta1c770ca2713b2d269f75390fede83c678b6e3df (diff)
downloadrneovim-f65d58907d9ff613294c496fb54cc0e9c8e6ad73.tar.gz
rneovim-f65d58907d9ff613294c496fb54cc0e9c8e6ad73.tar.bz2
rneovim-f65d58907d9ff613294c496fb54cc0e9c8e6ad73.zip
os/*_defs.h: MAXNAMLEN cleanup
For non-Windows systems, we assume that NAME_MAX is in <limits.h>, as specified in POSIX.1-2008[1]. For Windows, which doesn't have NAME_MAX, just define it ourselves to _MAX_PATH[2]. Also, remove two (now unused) HAVE_*_H checks. [1]: http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/limits.h.html [2]: https://msdn.microsoft.com/en-us/library/930f87yf.aspx Helped-by: Seth Jackson
Diffstat (limited to 'config')
-rw-r--r--config/CMakeLists.txt2
-rw-r--r--config/config.h.in1
2 files changed, 0 insertions, 3 deletions
diff --git a/config/CMakeLists.txt b/config/CMakeLists.txt
index c64e7e1ddb..28b1e43ef7 100644
--- a/config/CMakeLists.txt
+++ b/config/CMakeLists.txt
@@ -16,7 +16,6 @@ check_type_size("void *" SIZEOF_VOID_PTR)
check_symbol_exists(_NSGetEnviron crt_externs.h HAVE__NSGETENVIRON)
# Headers
-check_include_files(dirent.h HAVE_DIRENT_H)
check_include_files(fcntl.h HAVE_FCNTL_H)
check_include_files(iconv.h HAVE_ICONV_H)
check_include_files(langinfo.h HAVE_LANGINFO_H)
@@ -25,7 +24,6 @@ check_include_files(locale.h HAVE_LOCALE_H)
check_include_files(pwd.h HAVE_PWD_H)
check_include_files(strings.h HAVE_STRINGS_H)
check_include_files(stropts.h HAVE_STROPTS_H)
-check_include_files(sys/param.h HAVE_SYS_PARAM_H)
check_include_files(sys/wait.h HAVE_SYS_WAIT_H)
if(NOT HAVE_SYS_WAIT_H AND UNIX)
# See if_cscope.c
diff --git a/config/config.h.in b/config/config.h.in
index b442a732e5..7975b89103 100644
--- a/config/config.h.in
+++ b/config/config.h.in
@@ -42,7 +42,6 @@
#cmakedefine HAVE_STRINGS_H
#cmakedefine HAVE_STRNCASECMP
#cmakedefine HAVE_STROPTS_H
-#cmakedefine HAVE_SYS_PARAM_H
#cmakedefine HAVE_SYS_UTSNAME_H
#cmakedefine HAVE_SYS_WAIT_H
#cmakedefine HAVE_UNISTD_H