From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7F1CB158086 for ; Thu, 28 Oct 2021 09:56:44 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CB55CE0874; Thu, 28 Oct 2021 09:56:43 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B6642E0874 for ; Thu, 28 Oct 2021 09:56:43 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A6874343A11 for ; Thu, 28 Oct 2021 09:56:42 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5D59583 for ; Thu, 28 Oct 2021 09:56:41 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1635414683.e9a45d1832ba36acd11bf4c8fa57b576f87d17c5.vapier@gentoo> Subject: [gentoo-commits] proj/sandbox:master commit in: src/ X-VCS-Repository: proj/sandbox X-VCS-Files: src/sandbox.c X-VCS-Directories: src/ X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: e9a45d1832ba36acd11bf4c8fa57b576f87d17c5 X-VCS-Branch: master Date: Thu, 28 Oct 2021 09:56:41 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 2c8df33e-466d-4cef-b158-1cf5be5fc455 X-Archives-Hash: 6e47259c16f7826bfc9a4cf22cf5a7eb commit: e9a45d1832ba36acd11bf4c8fa57b576f87d17c5 Author: Mike Frysinger gentoo org> AuthorDate: Thu Oct 28 09:51:23 2021 +0000 Commit: Mike Frysinger gentoo 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 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)