]> git.sur5r.net Git - openldap/blob - include/ac/param.h
Happy new year
[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.  A copy of this license is available at
10  * http://www.OpenLDAP.org/license.html or in file LICENSE in the
11  * top-level directory of the distribution.
12  */
13
14 #ifndef _AC_PARAM_H
15 #define _AC_PARAM_H
16
17 #ifdef HAVE_SYS_PARAM_H
18 #include <sys/param.h>
19 #endif
20
21 #ifndef MAXPATHLEN
22 #       if defined(PATH_MAX)
23 #               define MAXPATHLEN       PATH_MAX
24
25 #       elif defined(_MAX_PATH)
26 #               define MAXPATHLEN       _MAX_PATH
27
28 #       else
29 #               define MAXPATHLEN       4096
30 #       endif
31 #endif
32
33 #endif /* _AC_PARAM_H */