relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
[pspp] / lib / progreloc.c
index 19bbc125c43717a923b96863eac4e19a96c6d23c..d5e48cb89162169c867430c929bc2c1a0b913f64 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.  */