openldap/include/ac/param.h

34 lines
758 B
C
Raw Normal View History

1999-11-02 01:21:24 +08:00
/* Generic param.h */
/* $OpenLDAP$ */
/*
2003-01-04 04:20:47 +08:00
* Copyright 1998-2003 The OpenLDAP Foundation, Redwood City, California, USA
1999-11-02 01:21:24 +08:00
* All rights reserved.
*
2001-05-29 11:35:56 +08:00
* Redistribution and use in source and binary forms, with or without
* modification, are permitted only as authorized by the OpenLDAP
* Public License. A copy of this license is available at
* http://www.OpenLDAP.org/license.html or in file LICENSE in the
* top-level directory of the distribution.
1999-11-02 01:21:24 +08:00
*/
#ifndef _AC_PARAM_H
#define _AC_PARAM_H
#ifdef HAVE_SYS_PARAM_H
#include <sys/param.h>
#endif
#ifndef MAXPATHLEN
2001-11-28 10:17:55 +08:00
# if defined(PATH_MAX)
# define MAXPATHLEN PATH_MAX
2001-11-28 10:16:44 +08:00
# elif defined(_MAX_PATH)
1999-11-02 01:21:24 +08:00
# define MAXPATHLEN _MAX_PATH
2001-11-28 10:16:44 +08:00
2001-11-28 10:09:11 +08:00
# else
# define MAXPATHLEN 4096
1999-11-02 01:21:24 +08:00
# endif
#endif
#endif /* _AC_PARAM_H */