3 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
5 * Copyright 1998-2012 The OpenLDAP Foundation.
8 * Redistribution and use in source and binary forms, with or without
9 * modification, are permitted only as authorized by the OpenLDAP
12 * A copy of this license is available in file LICENSE in the
13 * top-level directory of the distribution or, alternatively, at
14 * <http://www.OpenLDAP.org/license.html>.
20 #ifdef HAVE_SYS_PARAM_H
21 #include <sys/param.h>
24 /* MAXPATHLEN should come from <unistd.h> */
25 #include <ac/unistd.h>
28 # if defined(PATH_MAX)
29 # define MAXPATHLEN PATH_MAX
31 # elif defined(_MAX_PATH)
32 # define MAXPATHLEN _MAX_PATH
35 # define MAXPATHLEN 4096
39 #endif /* _AC_PARAM_H */