summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--defines.h14
2 files changed, 9 insertions, 7 deletions
diff --git a/ChangeLog b/ChangeLog
index 201f2cb1e..ce88d9195 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,8 @@
2 - (tim) [openbsd-compat/bsd-misc.h sshd.c] Fix conflicting return type for 2 - (tim) [openbsd-compat/bsd-misc.h sshd.c] Fix conflicting return type for
3 unsetenv due to rev 1.14 change to setenv.c. Cast unsetenv to void in sshd.c 3 unsetenv due to rev 1.14 change to setenv.c. Cast unsetenv to void in sshd.c
4 ok dtucker@ 4 ok dtucker@
5 - (tim) [defines.h] move chunk introduced in 1.125 before MAXPATHLEN so
6 it actually works.
5 7
620120214 820120214
7 - (djm) [openbsd-compat/bsd-cygwin_util.c] Add PROGRAMFILES to list of 9 - (djm) [openbsd-compat/bsd-cygwin_util.c] Add PROGRAMFILES to list of
diff --git a/defines.h b/defines.h
index 45612aab4..53f83a142 100644
--- a/defines.h
+++ b/defines.h
@@ -25,7 +25,7 @@
25#ifndef _DEFINES_H 25#ifndef _DEFINES_H
26#define _DEFINES_H 26#define _DEFINES_H
27 27
28/* $Id: defines.h,v 1.168 2011/09/29 01:11:56 djm Exp $ */ 28/* $Id: defines.h,v 1.169 2012/02/15 04:13:06 tim Exp $ */
29 29
30 30
31/* Constants */ 31/* Constants */
@@ -87,6 +87,12 @@ enum
87# define IPTOS_DSCP_EF 0xb8 87# define IPTOS_DSCP_EF 0xb8
88#endif /* IPTOS_DSCP_EF */ 88#endif /* IPTOS_DSCP_EF */
89 89
90#ifndef PATH_MAX
91# ifdef _POSIX_PATH_MAX
92# define PATH_MAX _POSIX_PATH_MAX
93# endif
94#endif
95
90#ifndef MAXPATHLEN 96#ifndef MAXPATHLEN
91# ifdef PATH_MAX 97# ifdef PATH_MAX
92# define MAXPATHLEN PATH_MAX 98# define MAXPATHLEN PATH_MAX
@@ -99,12 +105,6 @@ enum
99# endif /* PATH_MAX */ 105# endif /* PATH_MAX */
100#endif /* MAXPATHLEN */ 106#endif /* MAXPATHLEN */
101 107
102#ifndef PATH_MAX
103# ifdef _POSIX_PATH_MAX
104# define PATH_MAX _POSIX_PATH_MAX
105# endif
106#endif
107
108#if defined(HAVE_DECL_MAXSYMLINKS) && HAVE_DECL_MAXSYMLINKS == 0 108#if defined(HAVE_DECL_MAXSYMLINKS) && HAVE_DECL_MAXSYMLINKS == 0
109# define MAXSYMLINKS 5 109# define MAXSYMLINKS 5
110#endif 110#endif