From: Bruno Haible Date: Fri, 10 Sep 2010 19:42:19 +0000 (+0200) Subject: relocatable-prog-wrapper: Fix compilation failure due to O_EXEC. X-Git-Tag: v0.1~3820 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=7356a7c072098c2cc3220e8fe139cfbc4a987699;p=gnulib.git relocatable-prog-wrapper: Fix compilation failure due to O_EXEC. * lib/progreloc.c (O_EXEC): Define fallback. --- diff --git a/ChangeLog b/ChangeLog index 80e073625..b4a56be9b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2010-09-10 Bruno Haible + + relocatable-prog-wrapper: Fix compilation failure due to O_EXEC. + * lib/progreloc.c (O_EXEC): Define fallback. + 2010-09-10 Paul Eggert fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines diff --git a/lib/progreloc.c b/lib/progreloc.c index 19bbc125c..d5e48cb89 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 included above may be the system's one, not the gnulib one. */