From: Guido =?iso-8859-1?Q?G=FCnther?= Subject: [PATCH/RFC] don't include in libxl.h Date: Fri, 7 Oct 2011 19:05:28 +0200 Message-ID: <20111007170528.GA21562@bogon.sigxcpu.org> References: <20111005181413.GA32317@bogon.sigxcpu.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="y0ulUmNC+osPPQO6" Content-Transfer-Encoding: 8bit Return-path: Content-Disposition: inline In-Reply-To: <20111005181413.GA32317@bogon.sigxcpu.org> 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 --y0ulUmNC+osPPQO6 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, I'm unsure if libvirt qualifies as "node control tool": In file included from /tmp/usr/include/libxl.h:137:0, from libxl/libxl_conf.c:28: /tmp/usr/include/xen/sysctl.h:31:2: error: #error "sysctl operations are intended for use by node control tools only" In file included from /tmp/usr/include/xen/sysctl.h:35:0, from /tmp/usr/include/libxl.h:137, from libxl/libxl_conf.c:28: If not it makes sense to remove the include from libxl.h and include it in xl_cmdimpl.c directly. This allows libvirt to include libxl.h again without defining __XEN_TOOLS__. Does this look correct? Cheers, -- Guido --y0ulUmNC+osPPQO6 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: attachment; filename="Don't include sysctl.h in public header" Content-Transfer-Encoding: 8bit # HG changeset patch # Parent 0b66e6450ffe6823d8b323ef4248b38fe7372d54 Signed-off-by: Guido Günther diff --git a/tools/libxl/libxl.h b/tools/libxl/libxl.h --- a/tools/libxl/libxl.h +++ b/tools/libxl/libxl.h @@ -134,7 +134,6 @@ #include #include -#include #include diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -41,6 +41,8 @@ #include "libxlutil.h" #include "xl.h" +#include + #define CHK_ERRNO( call ) ({ \ int chk_errno = (call); \ if (chk_errno < 0) { \ --y0ulUmNC+osPPQO6 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --y0ulUmNC+osPPQO6--