1 /* maxpath.h - Find out what this system thinks MAXPATHLEN is. */
3 /* Copyright (C) 1993 Free Software Foundation, Inc.
5 This file is part of GNU Bash, the Bourne Again SHell.
7 Bash is free software; you can redistribute it and/or modify it under
8 the terms of the GNU General Public License as published by the Free
9 Software Foundation; either version 2, or (at your option) any later
12 Bash is distributed in the hope that it will be useful, but WITHOUT ANY
13 WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17 You should have received a copy of the GNU General Public License along
18 with Bash; see the file COPYING. If not, write to the Free Software
19 Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
21 #if !defined (_MAXPATH_H)
24 #if !defined (MAXPATHLEN) && defined (HAVE_LIMITS_H)
25 # if !defined (BUILDING_MAKEFILE)
27 # endif /* BUILDING_MAKEFILE */
28 #endif /* !MAXPATHLEN && HAVE_LIMITS_H */
30 #if !defined (MAXPATHLEN) && defined (HAVE_SYS_PARAM)
31 # include <sys/param.h>
32 #endif /* !MAXPATHLEN && HAVE_SYS_PARAM */
34 #if !defined (MAXPATHLEN) && defined (PATH_MAX)
35 # define MAXPATHLEN PATH_MAX
36 #endif /* !MAXPATHLEN && PATH_MAX */
38 /* Yecch! Who cares about this gross concept in the first place? */
39 #if !defined (MAXPATHLEN)
40 # define MAXPATHLEN 1024
41 #endif /* MAXPATHLEN */
43 #endif /* _MAXPATH_H */