Package: kde-runtime / 4:17.08.3-2.1

hurd.diff 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
26
27
28
From: Pino Toscano <pino@debian.org>
Date: Sat, 18 Jun 2016 11:49:17 +0200
Subject: hurd

Author: Pino Toscano <pino@debian.org>
Description: nfs: provide a fallback PATH_MAX definition
 Define PATH_MAX to 4096 if not defined already -- this way kio_nfs can build
 again on Hurd.
Forwarded: not-needed
Last-Update: 2016-06-18
---
 kioslave/nfs/nfsv3.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/kioslave/nfs/nfsv3.cpp b/kioslave/nfs/nfsv3.cpp
index 06402120f9..2240e7ed38 100644
--- a/kioslave/nfs/nfsv3.cpp
+++ b/kioslave/nfs/nfsv3.cpp
@@ -59,6 +59,9 @@
 #define NFSVERS 3UL
 
 #define NFS3_MAXDATA    32768
+#ifndef PATH_MAX
+# define PATH_MAX 4096
+#endif
 #define NFS3_MAXPATHLEN PATH_MAX
 
 NFSProtocolV3::NFSProtocolV3(NFSSlave* slave)