From: Marc Dequènes Date: Sun, 20 Sep 2020 19:01:50 +0000 (+0100) Subject: PATH_MAX fix X-Git-Tag: archive/raspbian/4%4.8.7+dfsg-11+rpi1+deb9u1^2~24 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=6c3e0888869ab423d6cc87c7922449df776b5eac;p=qt4-x11.git PATH_MAX fix 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 --- diff --git a/src/3rdparty/clucene/src/CLucene/config/compiler.h b/src/3rdparty/clucene/src/CLucene/config/compiler.h index 68f93b6e4..315d8ad2a 100644 --- a/src/3rdparty/clucene/src/CLucene/config/compiler.h +++ b/src/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)