param.h 890 B

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