1/*	$NetBSD: param.h,v 1.1.1.3 2010/12/12 15:21:26 adam Exp $	*/
2
3/* Generic param.h */
4/* OpenLDAP: pkg/ldap/include/ac/param.h,v 1.13.2.6 2010/04/13 20:22:51 kurt Exp */
5/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
6 *
7 * Copyright 1998-2010 The OpenLDAP Foundation.
8 * All rights reserved.
9 *
10 * Redistribution and use in source and binary forms, with or without
11 * modification, are permitted only as authorized by the OpenLDAP
12 * Public License.
13 *
14 * A copy of this license is available in file LICENSE in the
15 * top-level directory of the distribution or, alternatively, at
16 * <http://www.OpenLDAP.org/license.html>.
17 */
18
19#ifndef _AC_PARAM_H
20#define _AC_PARAM_H
21
22#ifdef HAVE_SYS_PARAM_H
23#include <sys/param.h>
24#endif
25
26/* MAXPATHLEN should come from <unistd.h> */
27#include <ac/unistd.h>
28
29#ifndef MAXPATHLEN
30#	if defined(PATH_MAX)
31#		define MAXPATHLEN	PATH_MAX
32
33#	elif defined(_MAX_PATH)
34#		define MAXPATHLEN	_MAX_PATH
35
36#	else
37#		define MAXPATHLEN	4096
38#	endif
39#endif
40
41#endif /* _AC_PARAM_H */
42