Skip to content

Commit

Permalink
src/seccomp_notify.c: fix static build
Browse files Browse the repository at this point in the history
Fix the following static build failure raised even when seccomp is
disabled:

src/seccomp_notify.c:10:10: fatal error: dlfcn.h: No such file or directory
   10 | #include <dlfcn.h>
      |          ^~~~~~~~~

Fixes:
 - http://autobuild.buildroot.org/results/71b4f35b3150183c7b44bc3897f01b0019e10ebe

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  • Loading branch information
ffontaine authored and haircommander committed Nov 1, 2023
1 parent a58206d commit f0eb924
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/seccomp_notify.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

#include <errno.h>
#include <sys/ioctl.h>
#include <dlfcn.h>
#include <sys/wait.h>
#include <sys/mount.h>
#include <signal.h>
Expand All @@ -19,6 +18,7 @@

#ifdef USE_SECCOMP

#include <dlfcn.h>
#include <sys/sysmacros.h>
#include <linux/seccomp.h>
#include <seccomp.h>
Expand Down

0 comments on commit f0eb924

Please sign in to comment.