aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-07-08 15:56:13 -0400
committerMike Frysinger <vapier@gentoo.org>2011-07-08 15:56:13 -0400
commit039b24cb0b97e69e8008de0037170c9a4a18de9a (patch)
treea3b1454602b49bfb8b4a5c16e8358666c0e3ee2a /libsandbox/trace.c
parentlibsandbox: invert debug checking order to avoid uninitialized variables (diff)
downloadsandbox-039b24cb0b97e69e8008de0037170c9a4a18de9a.tar.gz
sandbox-039b24cb0b97e69e8008de0037170c9a4a18de9a.tar.bz2
sandbox-039b24cb0b97e69e8008de0037170c9a4a18de9a.zip
libsandbox: delay trace_regs #error until use
Don't error out if we're missing trace_regs, but we don't ever actually use it. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'libsandbox/trace.c')
-rw-r--r--libsandbox/trace.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libsandbox/trace.c b/libsandbox/trace.c
index 2c404fb..45bb5d4 100644
--- a/libsandbox/trace.c
+++ b/libsandbox/trace.c
@@ -27,6 +27,10 @@ pid_t trace_pid;
#ifndef SB_NO_TRACE
+#ifndef HAVE_TRACE_REGS
+# error "unable to find struct for tracing regs"
+#endif
+
#ifdef HAVE_OPEN64
# define sb_openat_pre_check sb_openat64_pre_check
#endif