Skip to content

Commit

Permalink
patch 8.0.0346: Vim relies on limits.h to be included indirectly
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
brammool committed Feb 21, 2017
1 parent 3a25773 commit bfd3059
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
11 changes: 1 addition & 10 deletions src/os_unixx.h
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -764,6 +764,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
346,
/**/
345,
/**/
Expand Down
3 changes: 3 additions & 0 deletions src/vim.h
Expand Up @@ -487,6 +487,9 @@ typedef unsigned long u8char_T; /* long should be 32 bits or more */
# include <errno.h>
#endif

/* for INT_MAX et al. */
#include <limits.h>

/*
* Allow other (non-unix) systems to configure themselves now
* These are also in os_unix.h, because osdef.sh needs them there.
Expand Down

0 comments on commit bfd3059

Please sign in to comment.