| ... | ... | @@ -235,6 +235,8 @@ struct mount_attr |
| 235 | 235 | #define FSPICK_NO_AUTOMOUNT 0x00000004 |
| 236 | 236 | #define FSPICK_EMPTY_PATH 0x00000008 |
| 237 | 237 | |
| 238 | // zig patch: check target glibc version |
| 239 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 36) || __GLIBC__ > 2 |
| 238 | 240 | |
| 239 | 241 | #ifndef FSOPEN_CLOEXEC |
| 240 | 242 | /* The type of fsconfig call made. */ |
| ... | ... | @@ -268,6 +270,7 @@ enum fsconfig_command |
| 268 | 270 | #define OPEN_TREE_CLONE 1 /* Clone the target tree and attach the clone */ |
| 269 | 271 | #define OPEN_TREE_CLOEXEC O_CLOEXEC /* Close the file on execve() */ |
| 270 | 272 | |
| 273 | #endif |
| 271 | 274 | |
| 272 | 275 | __BEGIN_DECLS |
| 273 | 276 | |
| ... | ... | @@ -282,6 +285,9 @@ extern int umount (const char *__special_file) __THROW; |
| 282 | 285 | /* Unmount a filesystem. Force unmounting if FLAGS is set to MNT_FORCE. */ |
| 283 | 286 | extern int umount2 (const char *__special_file, int __flags) __THROW; |
| 284 | 287 | |
| 288 | // zig patch: check target glibc version |
| 289 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 36) || __GLIBC__ > 2 |
| 290 | |
| 285 | 291 | /* Open the filesystem referenced by FS_NAME so it can be configured for |
| 286 | 292 | mouting. */ |
| 287 | 293 | extern int fsopen (const char *__fs_name, unsigned int __flags) __THROW; |
| ... | ... | @@ -320,6 +326,8 @@ extern int mount_setattr (int __dfd, const char *__path, unsigned int __flags, |
| 320 | 326 | 			 struct mount_attr *__uattr, size_t __usize) |
| 321 | 327 | __THROW; |
| 322 | 328 | |
| 329 | #endif /* (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 36) || __GLIBC__ > 2 */ |
| 330 | |
| 323 | 331 | __END_DECLS |
| 324 | 332 | |
| 325 | | #endif /* _SYS_MOUNT_H */ |
| | \ No newline at end of file |
| 333 | #endif /* _SYS_MOUNT_H */ |