xref: /netbsd-src/external/bsd/openldap/dist/include/ac/param.h (revision 549b59ed3ccf0d36d3097190a0db27b770f3a839)
1*549b59edSchristos /*	$NetBSD: param.h,v 1.3 2021/08/14 16:14:55 christos Exp $	*/
24e6df137Slukem 
32de962bdSlukem /* Generic param.h */
4d11b170bStron /* $OpenLDAP$ */
52de962bdSlukem /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
62de962bdSlukem  *
7*549b59edSchristos  * Copyright 1998-2021 The OpenLDAP Foundation.
82de962bdSlukem  * All rights reserved.
92de962bdSlukem  *
102de962bdSlukem  * Redistribution and use in source and binary forms, with or without
112de962bdSlukem  * modification, are permitted only as authorized by the OpenLDAP
122de962bdSlukem  * Public License.
132de962bdSlukem  *
142de962bdSlukem  * A copy of this license is available in file LICENSE in the
152de962bdSlukem  * top-level directory of the distribution or, alternatively, at
162de962bdSlukem  * <http://www.OpenLDAP.org/license.html>.
172de962bdSlukem  */
182de962bdSlukem 
192de962bdSlukem #ifndef _AC_PARAM_H
202de962bdSlukem #define _AC_PARAM_H
212de962bdSlukem 
222de962bdSlukem #ifdef HAVE_SYS_PARAM_H
232de962bdSlukem #include <sys/param.h>
242de962bdSlukem #endif
252de962bdSlukem 
264e6df137Slukem /* MAXPATHLEN should come from <unistd.h> */
274e6df137Slukem #include <ac/unistd.h>
284e6df137Slukem 
292de962bdSlukem #ifndef MAXPATHLEN
302de962bdSlukem #	if defined(PATH_MAX)
312de962bdSlukem #		define MAXPATHLEN	PATH_MAX
322de962bdSlukem 
332de962bdSlukem #	elif defined(_MAX_PATH)
342de962bdSlukem #		define MAXPATHLEN	_MAX_PATH
352de962bdSlukem 
362de962bdSlukem #	else
372de962bdSlukem #		define MAXPATHLEN	4096
382de962bdSlukem #	endif
392de962bdSlukem #endif
402de962bdSlukem 
412de962bdSlukem #endif /* _AC_PARAM_H */
42