diff options
author | Mike Frysinger <vapier@gentoo.org> | 2021-10-28 05:51:23 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2021-10-28 05:51:23 -0400 |
commit | e9a45d1832ba36acd11bf4c8fa57b576f87d17c5 (patch) | |
tree | fec29310e4a69e5a247928d382db2d203ab7e157 /src | |
parent | bump to sandbox-2.29 (diff) | |
download | sandbox-e9a45d1832ba36acd11bf4c8fa57b576f87d17c5.tar.gz sandbox-e9a45d1832ba36acd11bf4c8fa57b576f87d17c5.tar.bz2 sandbox-e9a45d1832ba36acd11bf4c8fa57b576f87d17c5.zip |
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@gentoo.org>
Diffstat (limited to 'src')
-rw-r--r-- | src/sandbox.c | 3 |
1 files changed, 3 insertions, 0 deletions
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) |