File: hurd-path_max.diff

package info (click to toggle)
qttools-opensource-src 5.7.1-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 44,848 kB
  • ctags: 30,600
  • sloc: cpp: 244,927; xml: 1,930; ansic: 222; perl: 88; makefile: 39; java: 32
file content (19 lines) | stat: -rw-r--r-- 683 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Author: Marc Dequènes <duck@duckcorp.org>
Bug: https://bugreports.qt.io/browse/QTBUG-6960
Description: PATH_MAX fix
 Fix a POSIX incompatibility (as programs should not rely on having PATH_MAX
 defined on all systems) and causes FTBFS on Hurd.

--- a/src/assistant/3rdparty/clucene/src/CLucene/config/compiler.h
+++ b/src/assistant/3rdparty/clucene/src/CLucene/config/compiler.h
@@ -136,6 +136,10 @@
 #define LUCENE_INT32_MAX_SHOULDBE 0x7FFFFFFFL
 #define LUCENE_UINT8_MAX_SHOULDBE 0xff
 
+#if defined(__GNU__)
+ #define PATH_MAX 4096
+#endif
+
 //maximum path length. only used for buffers that use fullpath.
 //anything else should use a dynamic length.
 #if defined(CL_MAX_PATH)