aboutsummaryrefslogtreecommitdiff
path: root/lldb/test/Shell/Commands/Inputs/sigchld.c
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/Shell/Commands/Inputs/sigchld.c')
-rw-r--r--lldb/test/Shell/Commands/Inputs/sigchld.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/test/Shell/Commands/Inputs/sigchld.c b/lldb/test/Shell/Commands/Inputs/sigchld.c
index ba8c5ef..0121e70 100644
--- a/lldb/test/Shell/Commands/Inputs/sigchld.c
+++ b/lldb/test/Shell/Commands/Inputs/sigchld.c
@@ -1,3 +1,7 @@
+#if defined(__linux__)
+#define _XOPEN_SOURCE 500 /* for CLD_EXITED */
+#endif
+
#include <assert.h>
#include <signal.h>
#include <stdio.h>