]> git.sur5r.net Git - openldap/commitdiff
Support some MAXPATHLEN alternatives
authorKurt Zeilenga <kurt@openldap.org>
Wed, 28 Nov 2001 02:16:44 +0000 (02:16 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Wed, 28 Nov 2001 02:16:44 +0000 (02:16 +0000)
include/ac/param.h

index 0acfd4392a2d41e8297a35c8eb888355740bdcf8..5020fac4f4c621d263a1f70ce1126a290129d9cf 100644 (file)
 #endif
 
 #ifndef MAXPATHLEN
-#      ifdef _MAX_PATH
+#      if defined(PATHMAX)
+#              define MAXPATHLEN       PATHMAX
+
+#      elif defined(_MAX_PATH)
 #              define MAXPATHLEN       _MAX_PATH
+
 #      else
 #              define MAXPATHLEN       4096
 #      endif