Merge pull request #496 from smcv/missing-def

Allow building on old glibc without PR_SET_CHILD_SUBREAPER defined
This commit is contained in:
Simon McVittie
2022-05-10 16:23:02 +01:00
committed by GitHub
2 changed files with 8 additions and 0 deletions

View File

@@ -71,6 +71,10 @@
*/ */
#define WRONG_POINTER ((char *) 1) #define WRONG_POINTER ((char *) 1)
#ifndef PR_GET_CHILD_SUBREAPER
#define PR_GET_CHILD_SUBREAPER 37
#endif
int int
main (int argc, char **argv) main (int argc, char **argv)
{ {

View File

@@ -48,6 +48,10 @@ typedef int bool;
#define PIPE_READ_END 0 #define PIPE_READ_END 0
#define PIPE_WRITE_END 1 #define PIPE_WRITE_END 1
#ifndef PR_SET_CHILD_SUBREAPER
#define PR_SET_CHILD_SUBREAPER 36
#endif
void warn (const char *format, void warn (const char *format,
...) __attribute__((format (printf, 1, 2))); ...) __attribute__((format (printf, 1, 2)));
void die_with_error (const char *format, void die_with_error (const char *format,