diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/fcntl.in.h | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/lib/fcntl.in.h b/lib/fcntl.in.h index fb402ee1f0f..604c31b7984 100644 --- a/lib/fcntl.in.h +++ b/lib/fcntl.in.h | |||
| @@ -213,11 +213,7 @@ _GL_WARN_ON_USE (openat, "openat is not portable - " | |||
| 213 | #endif | 213 | #endif |
| 214 | 214 | ||
| 215 | #ifndef O_EXEC | 215 | #ifndef O_EXEC |
| 216 | # ifdef O_PATH | 216 | # define O_EXEC O_RDONLY /* This is often close enough in older systems. */ |
| 217 | # define O_EXEC O_PATH | ||
| 218 | # else | ||
| 219 | # define O_EXEC O_RDONLY /* This is often close enough in older systems. */ | ||
| 220 | # endif | ||
| 221 | #endif | 217 | #endif |
| 222 | 218 | ||
| 223 | #ifndef O_IGNORE_CTTY | 219 | #ifndef O_IGNORE_CTTY |
| @@ -274,11 +270,7 @@ _GL_WARN_ON_USE (openat, "openat is not portable - " | |||
| 274 | #endif | 270 | #endif |
| 275 | 271 | ||
| 276 | #ifndef O_SEARCH | 272 | #ifndef O_SEARCH |
| 277 | # ifdef O_PATH | 273 | # define O_SEARCH O_RDONLY /* This is often close enough in older systems. */ |
| 278 | # define O_SEARCH O_PATH | ||
| 279 | # else | ||
| 280 | # define O_SEARCH O_RDONLY /* This is often close enough in older systems. */ | ||
| 281 | # endif | ||
| 282 | #endif | 274 | #endif |
| 283 | 275 | ||
| 284 | #ifndef O_SYNC | 276 | #ifndef O_SYNC |