Provide a fallback for PATH_MAX.
[pspp] / lib / clean-temp.c
index 1d1e07ccc1bb6d9dd34d94a8f9eb183a1cf5b79b..12b9b6ce27ef9b0e51614b8559f33fd1372daf7b 100644 (file)
 
 #define _(str) gettext (str)
 
+/* GNU Hurd doesn't have PATH_MAX.  */
+#ifndef PATH_MAX
+# ifdef MAXPATHLEN
+#  define PATH_MAX MAXPATHLEN
+# else
+#  define PATH_MAX 1024
+# endif
+#endif
+
 #ifndef uintptr_t
 # define uintptr_t unsigned long
 #endif