]> xenbits.xensource.com Git - xen.git/commitdiff
xl: remove inclusion of libxl_osdeps.h
authorWei Liu <wei.liu2@citrix.com>
Thu, 23 Feb 2017 18:03:11 +0000 (18:03 +0000)
committerWei Liu <wei.liu2@citrix.com>
Mon, 27 Feb 2017 16:24:35 +0000 (16:24 +0000)
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 <wei.liu2@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/xl/xl.c
tools/xl/xl_cmdimpl.c
tools/xl/xl_sxp.c

index 4bc9648b71d42c7d95cbca0295a1809d7efe0952..5eab2c31c40725d3b6f5c2414963eff05e6c4f60 100644 (file)
@@ -12,8 +12,6 @@
  * GNU Lesser General Public License for more details.
  */
 
-#include "libxl_osdeps.h"
-
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
index a83739942cfa104ff20b0400471036f233404ce9..4dfcbe61cad569e80887a2b8771fd577e4407e8f 100644 (file)
@@ -12,7 +12,7 @@
  * GNU Lesser General Public License for more details.
  */
 
-#include "libxl_osdeps.h"
+#define _GNU_SOURCE
 
 #include <stdio.h>
 #include <stdlib.h>
index b67c0ae99946a4fe1a7f55d19c4b9cd371fc6b9f..9ced6f17be9531a8ec9a304304d43ce15d4f33e9 100644 (file)
@@ -16,8 +16,6 @@
  * Legacy SXP output handling
  */
 
-#include "libxl_osdeps.h"
-
 #include <stdlib.h>
 #include <inttypes.h>