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 32 33 34 35 36 37 38 39 40 41 42 43 44
|
Description: Definitions needed by Hurd port
There is no PATH_MAX, MAXPATHLEN or MAXHOSTNAMELEN in GNU/Hurd, so
this package does not compile from source.
.
The "right" fix for this would be to modify the program so that no
PATH_MAX is assumed (doing dynamic allocation of the required space),
but for now this patch should be enough:
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=218336
Author: Santiago Vila <sanvila@unex.es>
Forwarded: no
Last-Update: 2010-04-07
--- a/ftp/ftp_var.h
+++ b/ftp/ftp_var.h
@@ -68,6 +68,10 @@
#define Extern extern
#endif
+#ifndef MAXPATHLEN
+#define MAXPATHLEN 4096
+#endif
+
/*
* Options and other state info.
--- a/ftp/main.h
+++ b/ftp/main.h
@@ -18,3 +18,16 @@
while(0)
#define CHECKINT do { if (suppressint == 1 && intpending) { \
suppressint = 0; intr(SIGINT); }} while(0)
+
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
+
+#ifndef MAXPATHLEN
+#define MAXPATHLEN 4096
+#endif
+
+#ifndef MAXHOSTNAMELEN
+#define MAXHOSTNAMELEN 64
+#endif
+
|