Package: bsd-mailx / 8.1.2-0.20141216cvs-2

19-Fix-compilation-on-Hurd.patch Patch series | download
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
From: Robert Luberda <robert@debian.org>
Date: Tue, 14 Oct 2003 20:50:00 +0200
Subject: 19 Fix compilation on Hurd.

Fix problem with building on Hurd (closes: #213929).
---
 def.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/def.h b/def.h
index 0d1413a..4aad744 100644
--- a/def.h
+++ b/def.h
@@ -63,7 +63,11 @@
 
 #define	ESCAPE		'~'		/* Default escape for sending */
 #define	NMLSIZE		1024		/* max names in a message list */
+#ifdef MAXPATHLEN
 #define	PATHSIZE	MAXPATHLEN	/* Size of pathnames throughout */
+#else
+#define	PATHSIZE 	4096
+#endif
 #define	HSHSIZE		59		/* Hash size for aliases and vars */
 #define	LINESIZE	BUFSIZ		/* max readable line width */
 #define	STRINGSIZE	((unsigned) 128)/* Dynamic allocation units */