PATH_MAX fix
authorMarc Dequènes <duck@duckcorp.org>
Mon, 14 Sep 2020 13:56:35 +0000 (14:56 +0100)
committerLisandro Damián Nicanor Pérez Meyer <lisandro@debian.org>
Mon, 14 Sep 2020 13:56:35 +0000 (14:56 +0100)
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=485931
Bug-Debian: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=530308
Bug: http://bugreports.qt.nokia.com/browse/QTBUG-6960

Fix a POSIX incompatibility (as programs should not rely on having PATH_MAX
defined on all systems) and causes FTBFS on Hurd.

Gbp-Pq: Name 80_hurd_max_path.diff

src/3rdparty/clucene/src/CLucene/config/compiler.h

index 68f93b6e45cf614ec9c0b951d4bd0fc7ab3f7a6b..315d8ad2a10efc4dc292141acb4efdd255da7443 100644 (file)
 #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)