diff --git a/servers/slapd/back-monitor/database.c b/servers/slapd/back-monitor/database.c index ab298d5ec0..a667ad7506 100644 --- a/servers/slapd/back-monitor/database.c +++ b/servers/slapd/back-monitor/database.c @@ -274,6 +274,10 @@ 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;