| ... | ... | @@ -1203,6 +1203,8 @@ int getentropy (void *__buffer, size_t __length) __wur |
| 1203 | 1203 | #endif |
| 1204 | 1204 | |
| 1205 | 1205 | #ifdef __USE_GNU |
| 1206 | // zig patch: check target glibc version |
| 1207 | # if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 34) || __GLIBC__ > 2 |
| 1206 | 1208 | /* Close all file descriptors in the range FD up to MAX_FD. The flag FLAGS |
| 1207 | 1209 | are define by the CLOSE_RANGE prefix. This function behaves like close |
| 1208 | 1210 | on the range and gaps where the file descriptor is invalid or errors |
| ... | ... | @@ -1210,6 +1212,7 @@ int getentropy (void *__buffer, size_t __length) __wur |
| 1210 | 1212 | successor or -1 for failure (and sets errno accordingly). */ |
| 1211 | 1213 | extern int close_range (unsigned int __fd, unsigned int __max_fd, |
| 1212 | 1214 | 			int __flags) __THROW; |
| 1215 | # endif |
| 1213 | 1216 | #endif |
| 1214 | 1217 | |
| 1215 | 1218 | /* Define some macros helping to catch buffer overflows. */ |
| ... | ... | @@ -1222,4 +1225,4 @@ extern int close_range (unsigned int __fd, unsigned int __max_fd, |
| 1222 | 1225 | |
| 1223 | 1226 | __END_DECLS |
| 1224 | 1227 | |
| 1225 | | #endif /* unistd.h */ |
| | \ No newline at end of file |
| 1228 | #endif /* unistd.h */ |