X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2Ffcntl.in.h;h=a7e4a95016223e58d5f8c18105b177c1c145df2e;hb=ffb0b29997c66526985e1f4a496335d0ab4ef111;hp=42fb81bfb0796351d3472d2af4f8c13c1e47c647;hpb=3f322af6c93f7eb4c6ce5ceb789416aae10a50bd;p=gnulib.git diff --git a/lib/fcntl.in.h b/lib/fcntl.in.h index 42fb81bfb..a7e4a9501 100644 --- a/lib/fcntl.in.h +++ b/lib/fcntl.in.h @@ -170,6 +170,10 @@ _GL_WARN_ON_USE (openat, "openat is not portable - " # define O_CLOEXEC O_NOINHERIT #endif +#ifndef O_CLOEXEC +# define O_CLOEXEC 0 +#endif + #ifndef O_DIRECT # define O_DIRECT 0 #endif @@ -182,6 +186,10 @@ _GL_WARN_ON_USE (openat, "openat is not portable - " # define O_DSYNC 0 #endif +#ifndef O_EXEC +# define O_EXEC O_RDONLY /* This is often close enough in older systems. */ +#endif + #ifndef O_NDELAY # define O_NDELAY 0 #endif