File: hurd.patch

package info (click to toggle)
eckit 1.32.3-1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 305,900 kB
  • sloc: cpp: 111,643; ansic: 2,826; yacc: 590; lex: 361; python: 237; sh: 202; makefile: 41
file content (35 lines) | stat: -rw-r--r-- 776 bytes parent folder | 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
29
30
31
32
33
34
35
Description: Fix for FTBFS on Hurd
Author: Alastair McKinstry <mckinstry@debian.org>
Last-Updated: 2020-01-06
Forwarded: no

--- a/src/eckit/cmd/DirCmd.cc
+++ b/src/eckit/cmd/DirCmd.cc
@@ -11,6 +11,12 @@
 #include <unistd.h>
 #include <climits>
 
+/* Needed for Hurd */
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
+
+
 #include "eckit/cmd/DirCmd.h"
 #include "eckit/exception/Exceptions.h"
 #include "eckit/filesystem/PathName.h"
--- a/src/eckit/filesystem/LocalPathName.cc
+++ b/src/eckit/filesystem/LocalPathName.cc
@@ -26,6 +26,12 @@
 #include <sstream>
 #include <vector>
 
+/* Needed for Hurd */
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
+
+
 #include "eckit/config/LibEcKit.h"
 #include "eckit/config/Resource.h"
 #include "eckit/filesystem/BasePathNameT.h"