comparison src/os_unixx.h @ 10914:3b0924353019 v8.0.0346

patch 8.0.0346: Vim relies on limits.h to be included indirectly commit https://github.com/vim/vim/commit/bfd30590f6e3475033099d0fb20d9444fa10af6b Author: Bram Moolenaar <Bram@vim.org> Date: Tue Feb 21 21:57:06 2017 +0100 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.
author Christian Brabandt <cb@256bit.org>
date Tue, 21 Feb 2017 22:00:05 +0100
parents 82c2c450dad0
children 6e3dc2d630c2
comparison
equal deleted inserted replaced
10913:a9198ff3329a 10914:3b0924353019
67 #ifdef HAVE_SYS_UTSNAME_H 67 #ifdef HAVE_SYS_UTSNAME_H
68 # include <sys/utsname.h> 68 # include <sys/utsname.h>
69 #endif 69 #endif
70 70
71 #ifdef HAVE_SYS_SYSTEMINFO_H 71 #ifdef HAVE_SYS_SYSTEMINFO_H
72 /* 72 /* <sys/systeminfo.h> uses SYS_NMLN but it may not be defined (CrayT3E). */
73 * foolish Sinix <sys/systeminfo.h> uses SYS_NMLN but doesn't include
74 * <limits.h>, where it is defined. Perhaps other systems have the same
75 * problem? Include it here. -- Slootman
76 */
77 # if defined(HAVE_LIMITS_H) && !defined(_LIMITS_H)
78 # include <limits.h> /* for SYS_NMLN (Sinix 5.41 / Unix SysV.4) */
79 # endif
80
81 /* Define SYS_NMLN ourselves if it still isn't defined (for CrayT3E). */
82 # ifndef SYS_NMLN 73 # ifndef SYS_NMLN
83 # define SYS_NMLN 32 74 # define SYS_NMLN 32
84 # endif 75 # endif
85 76
86 # include <sys/systeminfo.h> /* for sysinfo */ 77 # include <sys/systeminfo.h> /* for sysinfo */