1From 6cfcea9a16017f2a49cd792d39ebd9c86395946a Mon Sep 17 00:00:00 2001 2From: Fabrice Fontaine <fontaine.fabrice@gmail.com> 3Date: Wed, 1 Nov 2023 16:45:21 +0100 4Subject: [PATCH] src/seccomp_notify.c: fix static build 5 6Fix the following static build failure raised even when seccomp is 7disabled: 8 9src/seccomp_notify.c:10:10: fatal error: dlfcn.h: No such file or directory 10 10 | #include <dlfcn.h> 11 | ^~~~~~~~~ 12 13Fixes: 14 - http://autobuild.buildroot.org/results/71b4f35b3150183c7b44bc3897f01b0019e10ebe 15 16Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> 17Upstream: https://github.com/containers/conmon/issues/462 18--- 19 src/seccomp_notify.c | 2 +- 20 1 file changed, 1 insertion(+), 1 deletion(-) 21 22diff --git a/src/seccomp_notify.c b/src/seccomp_notify.c 23index 8d34d9d..bf738ea 100644 24--- a/src/seccomp_notify.c 25+++ b/src/seccomp_notify.c 26@@ -7,7 +7,6 @@ 27 28 #include <errno.h> 29 #include <sys/ioctl.h> 30-#include <dlfcn.h> 31 #include <sys/wait.h> 32 #include <sys/mount.h> 33 #include <signal.h> 34@@ -19,6 +18,7 @@ 35 36 #ifdef USE_SECCOMP 37 38+#include <dlfcn.h> 39 #include <sys/sysmacros.h> 40 #include <linux/seccomp.h> 41 #include <seccomp.h> 42-- 432.42.0 44 45