From: Pino Toscano Date: Sat, 22 Jun 2024 17:55:15 +0000 (+0200) Subject: [PATCH] IPC: add PATH_MAX-less fallback definition for MAX_PATH X-Git-Tag: archive/raspbian/6.7.2+dfsg-5+rpi1^2^2~11 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=fc988b0737dc5ff56843f8a27c8a5700a2b688e3;p=qt6-base.git [PATCH] IPC: add PATH_MAX-less fallback definition for MAX_PATH Define MAX_PATH also when PATH_MAX is not defined (e.g on GNU/Hurd). MAX_PATH is Windows constant, and it is used in this file only in a code path for Windows; because of this, the static fallback define should be good enough. Change-Id: Ic1b9fee3b62505f86aa8ec89bbd20493bfe1f67c Reviewed-by: Thiago Macieira Gbp-Pq: Name upstream_IPC-add-PATH_MAX-less-fallback-definition-for-MAX_PA.patch --- diff --git a/src/corelib/ipc/qsharedmemory.cpp b/src/corelib/ipc/qsharedmemory.cpp index 02761c02..6ee662dc 100644 --- a/src/corelib/ipc/qsharedmemory.cpp +++ b/src/corelib/ipc/qsharedmemory.cpp @@ -14,7 +14,11 @@ #endif #ifndef MAX_PATH -# define MAX_PATH PATH_MAX +# ifdef PATH_MAX +# define MAX_PATH PATH_MAX +# else +# define MAX_PATH 1024 +# endif #endif QT_BEGIN_NAMESPACE