From: John Levon Subject: [PATCH] tools compile fix for Solaris Date: Tue, 17 Oct 2006 14:12:22 +0100 Message-ID: <20061017131222.GA6256@totally.trollied.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org # HG changeset patch # User john.levon@sun.com # Date 1161090676 25200 # Node ID 7a86cb5bb6b6e9164bec378b5fb0a270625a2452 # Parent c6bfe43048f3becda6966deceb7b70baea833b7c Solaris pollutes the global namespace with an ERR define: undef it before trying to use libxc's ERR(). Signed-off-by: John Levon diff --git a/tools/libxc/xc_private.h b/tools/libxc/xc_private.h --- a/tools/libxc/xc_private.h +++ b/tools/libxc/xc_private.h @@ -56,6 +56,7 @@ #define PPRINTF(_f, _a...) #endif +#undef ERR #define ERR(_f, _a...) do { \ DPRINTF(_f ": %d\n" , ## _a, errno); \ fflush(stderr); } \