mirror of
https://github.com/neovim/neovim.git
synced 2025-10-01 15:38:33 +00:00
fix: define NAME_MAX from _XOPEN_NAME_MAX
On SunOS NAME_MAX is not defined, _XOPEN_NAME_MAX is so fall back to defining NAME_MAX from _XOPEN_NAME_MAX.
This commit is contained in:
@@ -13,6 +13,10 @@
|
|||||||
# include "nvim/os/unix_defs.h"
|
# include "nvim/os/unix_defs.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#if !defined(NAME_MAX) && defined(_XOPEN_NAME_MAX)
|
||||||
|
#define NAME_MAX _XOPEN_NAME_MAX
|
||||||
|
#endif
|
||||||
|
|
||||||
#define BASENAMELEN (NAME_MAX - 5)
|
#define BASENAMELEN (NAME_MAX - 5)
|
||||||
|
|
||||||
// Use the system path length if it makes sense.
|
// Use the system path length if it makes sense.
|
||||||
|
Reference in New Issue
Block a user