diff options
author | Michael Reed <Pyrohh@users.noreply.github.com> | 2016-01-12 12:57:30 -0500 |
---|---|---|
committer | Michael Reed <Pyrohh@users.noreply.github.com> | 2016-01-12 12:57:30 -0500 |
commit | ddf3e2795986112057d4fc5eaf026740e16406d9 (patch) | |
tree | 886d01223fa0a6f63f8bda0d9f0ca7e1e2c31a4f /src/nvim/os/unix_defs.h | |
parent | a1c770ca2713b2d269f75390fede83c678b6e3df (diff) | |
parent | f65d58907d9ff613294c496fb54cc0e9c8e6ad73 (diff) | |
download | rneovim-ddf3e2795986112057d4fc5eaf026740e16406d9.tar.gz rneovim-ddf3e2795986112057d4fc5eaf026740e16406d9.tar.bz2 rneovim-ddf3e2795986112057d4fc5eaf026740e16406d9.zip |
Merge pull request #3985 from Pyrohh/_max_path
[RDY] os/*_defs.h: MAXNAMLEN cleanup
Diffstat (limited to 'src/nvim/os/unix_defs.h')
-rw-r--r-- | src/nvim/os/unix_defs.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/nvim/os/unix_defs.h b/src/nvim/os/unix_defs.h index 4af468f8d9..78fc9331d1 100644 --- a/src/nvim/os/unix_defs.h +++ b/src/nvim/os/unix_defs.h @@ -1,13 +1,12 @@ #ifndef NVIM_OS_UNIX_DEFS_H #define NVIM_OS_UNIX_DEFS_H +// Windows doesn't have unistd.h, so we include it here to avoid numerous +// instances of `#ifdef HAVE_UNISTD_H'. #include <unistd.h> -#include <signal.h> -// Defines BSD, if it's a BSD system. -#ifdef HAVE_SYS_PARAM_H -# include <sys/param.h> -#endif +// POSIX.1-2008 says that NAME_MAX should be in here +#include <limits.h> #define TEMP_DIR_NAMES {"$TMPDIR", "/tmp", ".", "~"} #define TEMP_FILE_PATH_MAXLEN 256 |