Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1diff --git a/meson.build b/meson.build 2index a0289ad..211b01b 100644 3--- a/meson.build 4+++ b/meson.build 5@@ -134,11 +134,13 @@ foreach ident: [ 6 '''#include <stdlib.h> 7 #include <unistd.h> 8 #include <signal.h> 9+ #include <sys/pidfd.h> 10 #include <sys/wait.h>'''], 11 ['pidfd_open', 12 '''#include <stdlib.h> 13 #include <unistd.h> 14 #include <signal.h> 15+ #include <sys/pidfd.h> 16 #include <sys/wait.h>'''], 17 ] 18 have = cc.has_function(ident[0], prefix: ident[1], args: '-D_GNU_SOURCE') 19diff --git a/src/bindings.c b/src/bindings.c 20index 13259c1..e760330 100644 21--- a/src/bindings.c 22+++ b/src/bindings.c 23@@ -1,5 +1,6 @@ 24 /* SPDX-License-Identifier: LGPL-2.1+ */ 25 26+#include <sys/pidfd.h> 27 #include "config.h" 28 29 #include <dirent.h>