From 26a101edce38fa3d0dc4423086a8cb98a4387d7b Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Sat, 9 Apr 2005 06:35:28 +0000 Subject: [PATCH] ITS#3644 include limits.h in config.h, set PATH_MAX in config.h --- servers/slapd/config.c | 6 ------ servers/slapd/config.h | 7 +++++++ 2 files changed, 7 insertions(+), 6 deletions(-) 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; -- 2.39.5