psppire-output-window: Use fallback PATH_MAX on GNU/Hurd. 20120311030503/pspp
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 11 Mar 2012 00:40:53 +0000 (16:40 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 11 Mar 2012 00:40:53 +0000 (16:40 -0800)
This fallback is from lib/clean-temp.c in Gnulib.

src/ui/gui/psppire-output-window.c

index 29b849031b4e87ad5ad59a0d98a9da2f6482e282..3000a5a03ee0228243691cbd600d95e01364f76c 100644 (file)
@@ -736,6 +736,12 @@ enum {
   SELECT_FMT_ODT
 };
 
+/* GNU Hurd doesn't have PATH_MAX.  Use a fallback.
+   Temporary directory names are usually not that long.  */
+#ifndef PATH_MAX
+# define PATH_MAX 1024
+#endif
+
 static void
 clipboard_get_cb (GtkClipboard     *clipboard,
                  GtkSelectionData *selection_data,