Skip to content

Commit

Permalink
swtpm: Remove unnecessary #include <seccomp.h> (fixes SuSE build)
Browse files Browse the repository at this point in the history
It's not necessary anymore to #include <seccomp.h> from the main programs.
Once removed, it also fixes the build on SuSE where seccomp.h is in
seccomp/seccomp.h and we didn't use the LIBSECCOMP_CFLAGS for swtpm.c etc.

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
  • Loading branch information
stefanberger committed Apr 20, 2020
1 parent ebd3688 commit 8a8e007
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
4 changes: 0 additions & 4 deletions src/swtpm/cuse_tpm.c
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,6 @@

#include <glib.h>

#ifdef WITH_SECCOMP
# include <seccomp.h>
#endif

#include <libtpms/tpm_library.h>
#include <libtpms/tpm_tis.h>
#include <libtpms/tpm_error.h>
Expand Down
4 changes: 0 additions & 4 deletions src/swtpm/swtpm.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@
#include <sys/types.h>
#include <sys/socket.h>

#ifdef WITH_SECCOMP
# include <seccomp.h>
#endif

#include <libtpms/tpm_error.h>
#include <libtpms/tpm_library.h>
#include <libtpms/tpm_memory.h>
Expand Down
4 changes: 0 additions & 4 deletions src/swtpm/swtpm_chardev.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@
#include <sys/socket.h>
#include <sys/ioctl.h>

#ifdef WITH_SECCOMP
# include <seccomp.h>
#endif

#include <libtpms/tpm_error.h>
#include <libtpms/tpm_library.h>
#include <libtpms/tpm_memory.h>
Expand Down

0 comments on commit 8a8e007

Please sign in to comment.