aboutsummaryrefslogtreecommitdiff
path: root/libchill
diff options
context:
space:
mode:
authorJ"orn Rennecke <amylaar@cygnus.co.uk>1998-11-20 10:49:53 +0000
committerJoern Rennecke <amylaar@gcc.gnu.org>1998-11-20 10:49:53 +0000
commit8411f163a98ea0de608dd7ffa5ffaf73a9f26d44 (patch)
tree21e4015b3ab013a73f064d4132d531c41f7b4847 /libchill
parentd25a233ec3b13b92ec08dfb37060fce3e0ec19a4 (diff)
downloadgcc-8411f163a98ea0de608dd7ffa5ffaf73a9f26d44.zip
gcc-8411f163a98ea0de608dd7ffa5ffaf73a9f26d44.tar.gz
gcc-8411f163a98ea0de608dd7ffa5ffaf73a9f26d44.tar.bz2
basicio.c (PATH_MAX): Define only to _POSIX_PATH_MAX if that is defined.
* basicio.c (PATH_MAX): Define only to _POSIX_PATH_MAX if that is defined. Otherwise, try MAXPATHLEN. From-SVN: r23736
Diffstat (limited to 'libchill')
-rw-r--r--libchill/ChangeLog5
-rw-r--r--libchill/basicio.c6
2 files changed, 11 insertions, 0 deletions
diff --git a/libchill/ChangeLog b/libchill/ChangeLog
index 0211502..8d0a95c 100644
--- a/libchill/ChangeLog
+++ b/libchill/ChangeLog
@@ -1,3 +1,8 @@
+Fri Nov 20 18:48:34 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
+
+ * basicio.c (PATH_MAX): Define only to _POSIX_PATH_MAX if that is
+ defined. Otherwise, try MAXPATHLEN.
+
Thu Oct 22 14:37:35 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* configure.in: Use AC_CONFIG_AUX_DIR($topsrcdir).
diff --git a/libchill/basicio.c b/libchill/basicio.c
index 7b71a08..3000b0a 100644
--- a/libchill/basicio.c
+++ b/libchill/basicio.c
@@ -38,7 +38,13 @@
#include "fileio.h"
#ifndef PATH_MAX
+#ifdef _POSIX_PATH_MAX
#define PATH_MAX _POSIX_PATH_MAX
+#else
+#ifdef MAXPATHLEN
+#define PATH_MAX MAXPATHLEN
+#endif
+#endif
#endif
static