relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
authorBruno Haible <bruno@clisp.org>
Fri, 10 Sep 2010 19:42:19 +0000 (21:42 +0200)
committerBruno Haible <bruno@clisp.org>
Fri, 10 Sep 2010 19:46:16 +0000 (21:46 +0200)
* lib/progreloc.c (O_EXEC): Define fallback.

ChangeLog
lib/progreloc.c

index 80e0736..b4a56be 100644 (file)
--- 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
index 19bbc12..d5e48cb 100644 (file)
 # 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.  */