public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Mike Frysinger" <vapier@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sandbox:master commit in: /, libsandbox/
Date: Fri,  8 Jul 2011 19:56:43 +0000 (UTC)	[thread overview]
Message-ID: <039b24cb0b97e69e8008de0037170c9a4a18de9a.vapier@gentoo> (raw)

commit:     039b24cb0b97e69e8008de0037170c9a4a18de9a
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Fri Jul  8 19:56:13 2011 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Fri Jul  8 19:56:13 2011 +0000
URL:        http://git.overlays.gentoo.org/gitweb/?p=proj/sandbox.git;a=commit;h=039b24cb

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 <AT> gentoo.org>

---
 libsandbox/trace.c |    4 ++++
 localdecls.h       |    3 ++-
 2 files changed, 6 insertions(+), 1 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

diff --git a/localdecls.h b/localdecls.h
index 83c01d6..3992834 100644
--- a/localdecls.h
+++ b/localdecls.h
@@ -63,12 +63,13 @@ typedef __sighandler_t sighandler_t;
 # endif
 #endif
 
+#define HAVE_TRACE_REGS
 #if defined(HAVE_STRUCT_PT_REGS)
 typedef struct pt_regs trace_regs;
 #elif defined(HAVE_STRUCT_USER_REGS_STRUCT)
 typedef struct user_regs_struct trace_regs;
 #else
-# error "unable to find struct for tracing regs"
+# undef HAVE_TRACE_REGS
 #endif
 
 #ifndef ARRAY_SIZE



             reply	other threads:[~2011-07-08 19:56 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-08 19:56 Mike Frysinger [this message]
  -- strict thread matches above, loose matches on Subject: below --
2012-03-07  5:28 [gentoo-commits] proj/sandbox:master commit in: /, libsandbox/ Mike Frysinger
2012-08-13  1:56 Mike Frysinger
2013-02-25  4:23 Mike Frysinger
2021-10-21 22:30 Mike Frysinger
2025-01-08  2:12 [gentoo-commits] proj/sandbox:stable-2.x commit in: libsandbox/, / Mike Gilbert
2025-01-14  4:38 ` [gentoo-commits] proj/sandbox:master commit in: /, libsandbox/ Mike Gilbert
2025-03-09 18:27 Mike Gilbert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=039b24cb0b97e69e8008de0037170c9a4a18de9a.vapier@gentoo \
    --to=vapier@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox