diff options
author | Bruno Haible <bruno@clisp.org> | 2010-09-10 21:42:19 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2010-09-10 21:46:16 +0200 |
commit | 7356a7c072098c2cc3220e8fe139cfbc4a987699 (patch) | |
tree | 553af6687723b812eb00d50e729cbbe49718091c /lib | |
parent | bf6eac96383d86e23360b1ae15bc384696fcdf31 (diff) | |
download | gnulib-7356a7c072098c2cc3220e8fe139cfbc4a987699.tar.gz |
relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
* lib/progreloc.c (O_EXEC): Define fallback.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/progreloc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/progreloc.c b/lib/progreloc.c index 19bbc125c4..d5e48cb891 100644 --- 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. */ |