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-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7356a7c072098c2cc3220e8fe139cfbc4a987699;p=pspp relocatable-prog-wrapper: Fix compilation failure due to O_EXEC. * lib/progreloc.c (O_EXEC): Define fallback. --- 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. */