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 28 29 30 31
|
From: Svante Signell <svante.signell@gmail.com>
Date: Wed, 1 Dec 2021 12:46:29 +0000
Subject: Fix FTBFS on hurd-i386
---
findexec.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/findexec.c b/findexec.c
index 70681a1..501a66c 100755
--- a/findexec.c
+++ b/findexec.c
@@ -52,7 +52,7 @@ Wed Feb 21 23:06:35 1996 Aubrey Jaffer
# include <sys/file.h>
# include <sys/param.h>
# endif
-# if defined(linux) || defined(__GLIBC__)
+# if defined(linux) || defined(__GLIBC__) || defined(__GNU__)
# include <string.h>
# include <stdlib.h>
# include <sys/stat.h>
@@ -123,6 +123,9 @@ Wed Feb 21 23:06:35 1996 Aubrey Jaffer
# include <sys/types.h>
# include <sys/stat.h>
# endif
+# ifndef MAXPATHLEN
+# define MAXPATHLEN 256
+# endif
# ifdef GO32
# include <sys/stat.h>
# endif
|