Mercurial > hg > octave-nkf
changeset 18290:91805d8ab62f stable
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.
author | Mike Miller <mtmiller@ieee.org> |
---|---|
date | Sun, 12 Jan 2014 17:55:29 -0500 |
parents | d033b08e9b0e |
children | 975480e1be4b |
files | libgui/qterminal/libqterminal/unix/kpty.cpp |
diffstat | 1 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libgui/qterminal/libqterminal/unix/kpty.cpp +++ b/libgui/qterminal/libqterminal/unix/kpty.cpp @@ -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 // ///////////////////////