Skip to content

Commit

Permalink
Add PTRACE_EVENT_SECCOMP definition if undef
Browse files Browse the repository at this point in the history
  • Loading branch information
udzura committed Apr 24, 2017
1 parent e5e766a commit 064808f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/tracing.c
Expand Up @@ -14,6 +14,11 @@
#include <sys/user.h>
#include <sys/wait.h>

/* At CentOS 7 there seems no definition */
#ifndef PTRACE_EVENT_SECCOMP
#define PTRACE_EVENT_SECCOMP 7
#endif

#ifdef MRB_SECCOMP_DEBUG
#define _log_p(fmt, ...) fprintf(stderr, fmt, ##__VA_ARGS__)
#else
Expand Down

0 comments on commit 064808f

Please sign in to comment.