libxl: Fix duplicate libxl_ctx typedef.
authorWen Congyang <wency@cn.fujitsu.com>
Fri, 11 Jul 2014 03:32:33 +0000 (11:32 +0800)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 11 Jul 2014 11:03:09 +0000 (12:03 +0100)
commit de18e4c038306aeeca53e6e63e563036cafef162 introduces a build error with
older gcc:

In file included from xl.c:31:
libxl.h:582: error: redefinition of typedef ‘libxl_ctx’
libxl.h:348: note: previous declaration of ‘libxl_ctx’ was here

Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
[ ijc -- rewrote commit message ]

tools/libxl/libxl.h

index e6e03010591ef71ea660140bd1233746f7e5eb2e..5ae6532bc8f2a8041703943764970bdac65b76d5 100644 (file)
@@ -579,8 +579,6 @@ typedef struct libxl__ctx libxl_ctx;
  */
 #define LIBXL_HAVE_CPUPOOL_NAME 1
 
-typedef struct libxl__ctx libxl_ctx;
-
 typedef uint8_t libxl_mac[6];
 #define LIBXL_MAC_FMT "%02hhx:%02hhx:%02hhx:%02hhx:%02hhx:%02hhx"
 #define LIBXL_MAC_FMTLEN ((2*6)+5) /* 6 hex bytes plus 5 colons */