projects
/
pspp
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
df88f90
)
psppire-output-window: Use fallback PATH_MAX on GNU/Hurd.
20120311030503/pspp
author
Ben Pfaff
<blp@cs.stanford.edu>
Sun, 11 Mar 2012 00:40:53 +0000
(16:40 -0800)
committer
Ben 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
patch
|
blob
|
history
diff --git
a/src/ui/gui/psppire-output-window.c
b/src/ui/gui/psppire-output-window.c
index 29b849031b4e87ad5ad59a0d98a9da2f6482e282..3000a5a03ee0228243691cbd600d95e01364f76c 100644
(file)
--- 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,