1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
From: Enrico Tassi <gareuselesinge@debian.org>
Date: Sun, 24 Aug 2014 11:22:27 +0200
Subject: fix MAXPATHLEN on hurd
Thanks Svante Signell for the patch
---
src/lfs.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/src/lfs.c b/src/lfs.c
index 4cb5875..d9bdfeb 100644
--- a/src/lfs.c
+++ b/src/lfs.c
@@ -98,7 +98,12 @@
#else
/* For MAXPATHLEN: */
#include <sys/param.h>
- #define LFS_MAXPATHLEN MAXPATHLEN
+ #ifdef MAXPATHLEN
+ #define LFS_MAXPATHLEN MAXPATHLEN
+ #else
+ #include <limits.h> // for _POSIX_PATH_MAX
+ #define LFS_MAXPATHLEN _POSIX_PATH_MAX
+ #endif
#endif
#endif
|