]> git.sur5r.net Git - openldap/commitdiff
ITS#6342 include <ac/unistd.h>
authorHoward Chu <hyc@openldap.org>
Wed, 21 Oct 2009 03:09:28 +0000 (03:09 +0000)
committerHoward Chu <hyc@openldap.org>
Wed, 21 Oct 2009 03:09:28 +0000 (03:09 +0000)
include/ac/param.h
servers/slapd/bconfig.c
servers/slapd/config.c

index 4130f6ebe5446de6c63fb07eebffb05003c5b304..b3eb5d7c31e464a4777c54038f340972ac83a624 100644 (file)
@@ -21,6 +21,9 @@
 #include <sys/param.h>
 #endif
 
+/* MAXPATHLEN should come from <unistd.h> */
+#include <ac/unistd.h>
+
 #ifndef MAXPATHLEN
 #      if defined(PATH_MAX)
 #              define MAXPATHLEN       PATH_MAX
index 2674459e19fd44d7eb58dbc6959ab3cbb0171dc5..93247bc4cc1364d98442bbd0cdbb6788145698d3 100644 (file)
@@ -25,6 +25,7 @@
 #include <ac/ctype.h>
 #include <ac/errno.h>
 #include <sys/stat.h>
+#include <ac/unistd.h>
 
 #include "slap.h"
 
index 12bd3b5cc5f379253e052a7c52eb95306c624910..c491d17c168ab6fcf43cddd1c6fec838ab52ee63 100644 (file)
@@ -33,6 +33,7 @@
 #include <ac/signal.h>
 #include <ac/socket.h>
 #include <ac/errno.h>
+#include <ac/unistd.h>
 
 #include <sys/types.h>
 #include <sys/stat.h>
 #define        S_ISREG(m)      (((m) & _S_IFMT) == _S_IFREG)
 #endif
 
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-
 #include "slap.h"
 #ifdef LDAP_SLAPI
 #include "slapi/slapi.h"