summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <smcv@collabora.com>2022-05-10 17:01:46 +0100
committerPhaedrus Leeds <mwl458@gmail.com>2022-06-27 10:02:25 -0700
commit0c5e4abbea1fa17159b0b793d7305fd745df9f7a (patch)
tree70ef219b200f7402c1fb15f8178d6f208281f218
parent836b0fb6046475a0f25c496bc3ee4fa1dad91e12 (diff)
downloadflatpak-0c5e4abbea1fa17159b0b793d7305fd745df9f7a.tar.gz
try-syscall: Cope with old glibc without PR_SET_CHILD_SUBREAPER defined
Originally part of containers/bubblewrap#496 in bubblewrap. Signed-off-by: Simon McVittie <smcv@collabora.com>
-rw-r--r--tests/try-syscall.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/try-syscall.c b/tests/try-syscall.c
index 9547e58d..6f2f112c 100644
--- a/tests/try-syscall.c
+++ b/tests/try-syscall.c
@@ -71,6 +71,10 @@
*/
#define WRONG_POINTER ((char *) 1)
+#ifndef PR_GET_CHILD_SUBREAPER
+#define PR_GET_CHILD_SUBREAPER 37
+#endif
+
int
main (int argc, char **argv)
{