1From a63c865aa9a24f3230e8e2bcb5bce88f179c7e2b Mon Sep 17 00:00:00 2001
2From: Alexander Kanavin <alex@linutronix.de>
3Date: Sat, 16 Sep 2023 22:28:27 +0200
4Subject: [PATCH] meson.build: do not enable pidfd features on native glib
5 builds
6
7We still use host distros like alma 8 with kernels older than 5.4,
8where these features are not implemented.
9
10Upstream-Status: Inappropriate [oe-core specific]
11Signed-off-by: Alexander Kanavin <alex@linutronix.de>
12---
13 meson.build | 3 ++-
14 1 file changed, 2 insertions(+), 1 deletion(-)
15
16diff --git a/meson.build b/meson.build
17index 5caa6e6..688f214 100644
18--- a/meson.build
19+++ b/meson.build
20@@ -1022,7 +1022,8 @@ if cc.links('''#include <sys/syscall.h>
21                  waitid (P_PIDFD, 0, &child_info, WEXITED | WNOHANG);
22                  return 0;
23                }''', name : 'pidfd_open(2) system call')
24-  glib_conf.set('HAVE_PIDFD', 1)
25+  #requires kernel 5.4+
26+  #glib_conf.set('HAVE_PIDFD', 1)
27 endif
28
29 # Check for __uint128_t (gcc) by checking for 128-bit division
30