From 0e5a128a78bc5133e9845d6c4b12871edb22cc88 Mon Sep 17 00:00:00 2001 From: Wei Liu Date: Thu, 23 Feb 2017 18:03:11 +0000 Subject: [PATCH] xl: remove inclusion of libxl_osdeps.h There is no reason for a client to include a private header from libxl. Remove the inclusion and define _GNU_SOURCE for {v,}asprintf in xl_cmdimpl.c. Signed-off-by: Wei Liu Acked-by: Ian Jackson --- tools/xl/xl.c | 2 -- tools/xl/xl_cmdimpl.c | 2 +- tools/xl/xl_sxp.c | 2 -- 3 files changed, 1 insertion(+), 5 deletions(-) diff --git a/tools/xl/xl.c b/tools/xl/xl.c index 4bc9648b71..5eab2c31c4 100644 --- a/tools/xl/xl.c +++ b/tools/xl/xl.c @@ -12,8 +12,6 @@ * GNU Lesser General Public License for more details. */ -#include "libxl_osdeps.h" - #include #include #include diff --git a/tools/xl/xl_cmdimpl.c b/tools/xl/xl_cmdimpl.c index a83739942c..4dfcbe61ca 100644 --- a/tools/xl/xl_cmdimpl.c +++ b/tools/xl/xl_cmdimpl.c @@ -12,7 +12,7 @@ * GNU Lesser General Public License for more details. */ -#include "libxl_osdeps.h" +#define _GNU_SOURCE #include #include diff --git a/tools/xl/xl_sxp.c b/tools/xl/xl_sxp.c index b67c0ae999..9ced6f17be 100644 --- a/tools/xl/xl_sxp.c +++ b/tools/xl/xl_sxp.c @@ -16,8 +16,6 @@ * Legacy SXP output handling */ -#include "libxl_osdeps.h" - #include #include -- 2.30.2