summaryrefslogtreecommitdiffstats
path: root/src/basic/missing_wait.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/basic/missing_wait.h')
-rw-r--r--src/basic/missing_wait.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/basic/missing_wait.h b/src/basic/missing_wait.h
new file mode 100644
index 0000000..3965b5b
--- /dev/null
+++ b/src/basic/missing_wait.h
@@ -0,0 +1,12 @@
+/* SPDX-License-Identifier: LGPL-2.1-or-later */
+#pragma once
+
+#include <sys/wait.h>
+
+#include "macro.h"
+
+#ifndef P_PIDFD
+# define P_PIDFD 3
+#else
+assert_cc(P_PIDFD == 3);
+#endif