From: Pierangelo Masarati Date: Thu, 2 Dec 2004 12:32:36 +0000 (+0000) Subject: cleanup previous commit (still temporary, need to define dedicated attributeTypes) X-Git-Tag: OPENLDAP_REL_ENG_2_3_0ALPHA~152 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5769f419db159cb3bffdaaee3825e84fb5f88406;p=openldap cleanup previous commit (still temporary, need to define dedicated attributeTypes) --- diff --git a/servers/slapd/back-monitor/database.c b/servers/slapd/back-monitor/database.c index a667ad7506..b9b52c9b03 100644 --- a/servers/slapd/back-monitor/database.c +++ b/servers/slapd/back-monitor/database.c @@ -46,6 +46,14 @@ static int monitor_back_add_plugin( Backend *be, Entry *e ); #include "../back-ldbm/back-ldbm.h" #endif /* defined(SLAPD_LDBM) */ +/* for PATH_MAX on some systems (e.g. Solaris) */ +#ifdef HAVE_LIMITS_H +#include +#endif /* HAVE_LIMITS_H */ +#ifndef PATH_MAX +#define PATH_MAX 4095 +#endif /* ! PATH_MAX */ + static struct restricted_ops_t { struct berval op; unsigned int tag; @@ -274,10 +282,6 @@ monitor_subsys_database_init( { struct berval bv; ber_len_t pathlen = 0, len = 0; -/* FIXME: need a cleaner solution */ -#ifndef PATH_MAX -#define PATH_MAX 4095 -#endif /* ! PATH_MAX */ char path[ PATH_MAX ] = { '\0' }; char *fname = NULL;