param.h 890 Bytes
Newer Older
1
2
/* Generic param.h */
/* $OpenLDAP$ */
Kurt Zeilenga's avatar
Kurt Zeilenga committed
3
4
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
 *
Kurt Zeilenga's avatar
Kurt Zeilenga committed
5
 * Copyright 1998-2009 The OpenLDAP Foundation.
6
7
 * All rights reserved.
 *
8
9
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted only as authorized by the OpenLDAP
Kurt Zeilenga's avatar
Kurt Zeilenga committed
10
11
12
13
14
 * Public License.
 *
 * A copy of this license is available in file LICENSE in the
 * top-level directory of the distribution or, alternatively, at
 * <http://www.OpenLDAP.org/license.html>.
15
16
17
18
19
20
21
22
23
 */

#ifndef _AC_PARAM_H
#define _AC_PARAM_H

#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif

Howard Chu's avatar
Howard Chu committed
24
25
26
/* MAXPATHLEN should come from <unistd.h> */
#include <ac/unistd.h>

27
#ifndef MAXPATHLEN
Kurt Zeilenga's avatar
Kurt Zeilenga committed
28
29
#	if defined(PATH_MAX)
#		define MAXPATHLEN	PATH_MAX
30
31

#	elif defined(_MAX_PATH)
32
#		define MAXPATHLEN	_MAX_PATH
33

Kurt Zeilenga's avatar
Kurt Zeilenga committed
34
35
#	else
#		define MAXPATHLEN	4096
36
37
38
39
#	endif
#endif

#endif /* _AC_PARAM_H */