icinga2: Pin boost version (#374998)
[NixPkgs.git] / pkgs / by-name / lx / lxcfs / pidfd.patch
blob3d9b6faa57f9e60bea628a31151d3feebdbd9c32
1 diff --git a/meson.build b/meson.build
2 index 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>'''],
18 have = cc.has_function(ident[0], prefix: ident[1], args: '-D_GNU_SOURCE')
19 diff --git a/src/bindings.c b/src/bindings.c
20 index 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+ */
26 +#include <sys/pidfd.h>
27 #include "config.h"
29 #include <dirent.h>