hurd_path_max
authorDebian Octave Group <pkg-octave-devel@lists.alioth.debian.org>
Mon, 1 Dec 2014 20:25:52 +0000 (20:25 +0000)
committerSébastien Villemot <sebastien@debian.org>
Mon, 1 Dec 2014 20:25:52 +0000 (20:25 +0000)
Gbp-Pq: Name hurd_path_max.diff

libgui/qterminal/libqterminal/unix/kpty.cpp

index 9371d1e9c16f0964cfeb498d7595b94462aa4c02..e6b6a53c2529ae117614edaad8723666a1dfd0ec 100644 (file)
@@ -153,6 +153,14 @@ extern "C" {
 # endif
 #endif
 
+#ifndef PATH_MAX
+# ifdef MAXPATHLEN
+#  define PATH_MAX MAXPATHLEN
+# else
+#  define PATH_MAX 1024
+# endif
+#endif
+
 ///////////////////////
 // private functions //
 ///////////////////////