Mercurial > hg > octave-shane > gnulib-hg
changeset 13667:3211d36b9926
relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
* lib/progreloc.c (O_EXEC): Define fallback.
author | Bruno Haible <bruno@clisp.org> |
---|---|
date | Fri, 10 Sep 2010 21:42:19 +0200 |
parents | 05b5bc0d1f3f |
children | 016da02bf986 |
files | ChangeLog lib/progreloc.c |
diffstat | 2 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-09-10 Bruno Haible <bruno@clisp.org> + + relocatable-prog-wrapper: Fix compilation failure due to O_EXEC. + * lib/progreloc.c (O_EXEC): Define fallback. + 2010-09-10 Paul Eggert <eggert@cs.ucla.edu> fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
--- 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. */