]> git.sur5r.net Git - openldap/commitdiff
FIXME: needs work/cleanup
authorPierangelo Masarati <ando@openldap.org>
Wed, 17 Nov 2004 19:42:19 +0000 (19:42 +0000)
committerPierangelo Masarati <ando@openldap.org>
Wed, 17 Nov 2004 19:42:19 +0000 (19:42 +0000)
servers/slapd/back-monitor/database.c

index ab298d5ec0d29372eb5d6868979b5c6488c6566c..a667ad75064aac6f4b56558af9d85aa9ecf2d262 100644 (file)
@@ -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;