projects
/
pspp
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
alloca: one step towards thread-safety
[pspp]
/
lib
/
progreloc.c
diff --git
a/lib/progreloc.c
b/lib/progreloc.c
index 19bbc125c43717a923b96863eac4e19a96c6d23c..d5e48cb89162169c867430c929bc2c1a0b913f64 100644
(file)
--- a/
lib/progreloc.c
+++ b/
lib/progreloc.c
@@
-59,6
+59,10
@@
# include "xalloc.h"
#endif
+#ifndef O_EXEC
+# define O_EXEC O_RDONLY /* This is often close enough in older systems. */
+#endif
+
/* Declare canonicalize_file_name.
The <stdlib.h> included above may be the system's one, not the gnulib
one. */