]> git.sur5r.net Git - openldap/blob - include/ac/param.h
Notice updates
[openldap] / include / ac / param.h
1 /* Generic param.h */
2 /* $OpenLDAP$ */
3 /*
4  * Copyright 1998-2003 The OpenLDAP Foundation, Redwood City, California, USA
5  * All rights reserved.
6  *
7  * Redistribution and use in source and binary forms, with or without
8  * modification, are permitted only as authorized by the OpenLDAP
9  * Public License.
10  *
11  * A copy of this license is available in file LICENSE in the
12  * top-level directory of the distribution or, alternatively, at
13  * <http://www.OpenLDAP.org/license.html>.
14  */
15
16 #ifndef _AC_PARAM_H
17 #define _AC_PARAM_H
18
19 #ifdef HAVE_SYS_PARAM_H
20 #include <sys/param.h>
21 #endif
22
23 #ifndef MAXPATHLEN
24 #       if defined(PATH_MAX)
25 #               define MAXPATHLEN       PATH_MAX
26
27 #       elif defined(_MAX_PATH)
28 #               define MAXPATHLEN       _MAX_PATH
29
30 #       else
31 #               define MAXPATHLEN       4096
32 #       endif
33 #endif
34
35 #endif /* _AC_PARAM_H */