# HG changeset patch # User Mike Miller # Date 1389567329 18000 # Node ID 91805d8ab62faf28f62bfa0e4c961301bb88d1c6 # Parent d033b08e9b0e0366d07296012672a088b9cd52c4 Fix build failure on Unix systems without PATH_MAX (bug #41212) * kpty.cpp (PATH_MAX): Define to fallback values on systems that do not provide PATH_MAX. Based on a change made to kdelibs after qterminal was made based on it. diff -r d033b08e9b0e -r 91805d8ab62f libgui/qterminal/libqterminal/unix/kpty.cpp --- a/libgui/qterminal/libqterminal/unix/kpty.cpp Sun Jan 12 17:51:47 2014 -0500 +++ b/libgui/qterminal/libqterminal/unix/kpty.cpp Sun Jan 12 17:55:29 2014 -0500 @@ -145,6 +145,14 @@ #define TTY_GROUP "tty" +#ifndef PATH_MAX +# ifdef MAXPATHLEN +# define PATH_MAX MAXPATHLEN +# else +# define PATH_MAX 1024 +# endif +#endif + /////////////////////// // private functions // ///////////////////////