From 7356a7c072098c2cc3220e8fe139cfbc4a987699 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Fri, 10 Sep 2010 21:42:19 +0200 Subject: [PATCH] relocatable-prog-wrapper: Fix compilation failure due to O_EXEC. * lib/progreloc.c (O_EXEC): Define fallback. --- ChangeLog | 5 +++++ lib/progreloc.c | 4 ++++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index 80e073625b..b4a56be9b3 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 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 included above may be the system's one, not the gnulib one. */ -- 2.30.2