Merge pull request #496 from smcv/missing-def
Allow building on old glibc without PR_SET_CHILD_SUBREAPER defined
This commit is contained in:
@@ -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)
|
||||||
{
|
{
|
||||||
|
4
utils.h
4
utils.h
@@ -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,
|
||||||
|
Reference in New Issue
Block a user