| ... | @@ -35,6 +35,8 @@ extern int posix_spawnattr_setcgroup_np (posix_spawnattr_t *__attr, | ... | @@ -35,6 +35,8 @@ extern int posix_spawnattr_setcgroup_np (posix_spawnattr_t *__attr, |
| 35 | 					 int __cgroup) | 35 | 					 int __cgroup) |
| 36 | __THROW __nonnull ((1)); | 36 | __THROW __nonnull ((1)); |
| 37 | | 37 | |
| | 38 | // zig patch: check target glibc version |
| | 39 | #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 39) || __GLIBC__ > 2 |
| 38 | /* Spawn a new process executing PATH with the attributes describes in *ATTRP. | 40 | /* Spawn a new process executing PATH with the attributes describes in *ATTRP. |
| 39 | Before running the process perform the actions described in FACTS. Return | 41 | Before running the process perform the actions described in FACTS. Return |
| 40 | a PID file descriptor in PIDFD if process creation was successful and the | 42 | a PID file descriptor in PIDFD if process creation was successful and the |
| ... | @@ -61,7 +63,8 @@ extern int pidfd_spawnp (int *__restrict __pidfd, | ... | @@ -61,7 +63,8 @@ extern int pidfd_spawnp (int *__restrict __pidfd, |
| 61 | 			 char *const __argv[__restrict_arr], | 63 | 			 char *const __argv[__restrict_arr], |
| 62 | 			 char *const __envp[__restrict_arr]) | 64 | 			 char *const __envp[__restrict_arr]) |
| 63 | __nonnull ((1, 2, 5)); | 65 | __nonnull ((1, 2, 5)); |
| | 66 | #endif /* (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 39) || __GLIBC__ > 2 */ |
| 64 | | 67 | |
| 65 | #endif /* __USE_MISC */ | 68 | #endif /* __USE_MISC */ |
| 66 | | 69 | |
| 67 | __END_DECLS | | |
| \ No newline at end of file |
| | 70 | __END_DECLS |