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