From: Howard Chu Date: Sat, 9 Apr 2005 06:35:28 +0000 (+0000) Subject: ITS#3644 include limits.h in config.h, set PATH_MAX in config.h X-Git-Tag: OPENLDAP_AC_BP~955 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=26a101edce38fa3d0dc4423086a8cb98a4387d7b;p=openldap ITS#3644 include limits.h in config.h, set PATH_MAX in config.h --- diff --git a/servers/slapd/config.c b/servers/slapd/config.c index 97f98c3a5b..500a64c468 100644 --- a/servers/slapd/config.c +++ b/servers/slapd/config.c @@ -39,12 +39,6 @@ #include "slapi/slapi.h" #endif #include "lutil.h" -#ifdef HAVE_LIMITS_H -#include -#endif /* HAVE_LIMITS_H */ -#ifndef PATH_MAX -#define PATH_MAX 4096 -#endif /* ! PATH_MAX */ #include "config.h" #define ARGS_STEP 512 diff --git a/servers/slapd/config.h b/servers/slapd/config.h index be90c5c2d3..b5c3e9fe21 100644 --- a/servers/slapd/config.h +++ b/servers/slapd/config.h @@ -14,6 +14,13 @@ * . */ +#ifdef HAVE_LIMITS_H +#include +#endif +#ifndef PATH_MAX +#define PATH_MAX 4096 +#endif + typedef struct ConfigTable { char *name; char *what;