From: Ben Pfaff Date: Sun, 11 Mar 2012 00:40:53 +0000 (-0800) Subject: psppire-output-window: Use fallback PATH_MAX on GNU/Hurd. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0f7fb2effd8e4bd91b0e09195f9df56aea6366a4;p=pspp psppire-output-window: Use fallback PATH_MAX on GNU/Hurd. This fallback is from lib/clean-temp.c in Gnulib. --- diff --git a/src/ui/gui/psppire-output-window.c b/src/ui/gui/psppire-output-window.c index 29b849031b..3000a5a03e 100644 --- a/src/ui/gui/psppire-output-window.c +++ b/src/ui/gui/psppire-output-window.c @@ -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,