mirror of
https://github.com/vim/vim.git
synced 2025-09-26 04:04:07 -04:00
patch 8.0.0346: Vim relies on limits.h to be included indirectly
Problem: Vim relies on limits.h to be included indirectly, but on Solaris 9 it may not be. (Ben Fritz) Solution: Always include limits.h.
This commit is contained in:
@@ -69,16 +69,7 @@
|
||||
#endif
|
||||
|
||||
#ifdef HAVE_SYS_SYSTEMINFO_H
|
||||
/*
|
||||
* foolish Sinix <sys/systeminfo.h> uses SYS_NMLN but doesn't include
|
||||
* <limits.h>, where it is defined. Perhaps other systems have the same
|
||||
* problem? Include it here. -- Slootman
|
||||
*/
|
||||
# if defined(HAVE_LIMITS_H) && !defined(_LIMITS_H)
|
||||
# include <limits.h> /* for SYS_NMLN (Sinix 5.41 / Unix SysV.4) */
|
||||
# endif
|
||||
|
||||
/* Define SYS_NMLN ourselves if it still isn't defined (for CrayT3E). */
|
||||
/* <sys/systeminfo.h> uses SYS_NMLN but it may not be defined (CrayT3E). */
|
||||
# ifndef SYS_NMLN
|
||||
# define SYS_NMLN 32
|
||||
# endif
|
||||
|
Reference in New Issue
Block a user