0001-src-seccomp_notify.c-fix-static-build.patch 1.1 KB

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