| ... | @@ -167,6 +167,10 @@ typedef __pid_t pid_t; | ... | @@ -167,6 +167,10 @@ typedef __pid_t pid_t; |
| 167 | 					 effective IDs, not real IDs. */ | 167 | 					 effective IDs, not real IDs. */ |
| 168 | #endif | 168 | #endif |
| 169 | | 169 | |
| | 170 | |
| | 171 | /* fcntl was a simple symbol until glibc 2.27 inclusive. glibc 2.28 onwards |
| | 172 | * re-defines it to fcntl64 (via #define) if _FILE_OFFSET_BITS == 64. */ |
| | 173 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 28) || __GLIBC__ > 2 |
| 170 | /* Do the file control operation described by CMD on FD. | 174 | /* Do the file control operation described by CMD on FD. |
| 171 | The remaining arguments are interpreted depending on CMD. | 175 | The remaining arguments are interpreted depending on CMD. |
| 172 | | 176 | |
| ... | @@ -197,6 +201,9 @@ extern int __fcntl_time64 (int __fd, int __request, ...) __THROW; | ... | @@ -197,6 +201,9 @@ extern int __fcntl_time64 (int __fd, int __request, ...) __THROW; |
| 197 | # define fcntl __fcntl_time64 | 201 | # define fcntl __fcntl_time64 |
| 198 | # endif | 202 | # endif |
| 199 | #endif | 203 | #endif |
| | 204 | #else /* glibc 2.27 or lower */ |
| | 205 | extern int fcntl (int __fd, int __cmd, ...); |
| | 206 | #endif |
| 200 | | 207 | |
| 201 | /* Open FILE and return a new file descriptor for it, or -1 on error. | 208 | /* Open FILE and return a new file descriptor for it, or -1 on error. |
| 202 | OFLAG determines the type of access used. If O_CREAT or O_TMPFILE is set | 209 | OFLAG determines the type of access used. If O_CREAT or O_TMPFILE is set |