commit:     e9a45d1832ba36acd11bf4c8fa57b576f87d17c5
Author:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Thu Oct 28 09:51:23 2021 +0000
Commit:     Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Thu Oct 28 09:51:23 2021 +0000
URL:        https://gitweb.gentoo.org/proj/sandbox.git/commit/?id=e9a45d18

sandbox: undefine dprintf

The C library has a dprintf function too, and it might be a define
that clashes with ours, so undefine it to avoid warnings.

Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org>

 src/sandbox.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/sandbox.c b/src/sandbox.c
index d74abd9..6cd5f38 100644
--- a/src/sandbox.c
+++ b/src/sandbox.c
@@ -15,6 +15,9 @@
 #include "sbutil.h"
 #include "sandbox.h"
 
+/* The C library might have a macro for this. */
+#undef dprintf
+
 static int print_debug = 0;
 #define dprintf(fmt, args...) do { if (print_debug) printf(fmt, ## args); } 
while (0)
 #define dputs(str) do { if (print_debug) puts(str); } while (0)

Reply via email to