[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen master] libxl: Fix duplicate libxl_ctx typedef.



commit 7bddc6b722bdd64475512bb18ca7b27dd550df3a
Author:     Wen Congyang <wency@xxxxxxxxxxxxxx>
AuthorDate: Fri Jul 11 11:32:33 2014 +0800
Commit:     Ian Campbell <ian.campbell@xxxxxxxxxx>
CommitDate: Fri Jul 11 12:03:09 2014 +0100

    libxl: Fix duplicate libxl_ctx typedef.

    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@xxxxxxxxxxxxxx>
    Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
    [ ijc -- rewrote commit message ]
---
 tools/libxl/libxl.h |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/tools/libxl/libxl.h b/tools/libxl/libxl.h
index e6e0301..5ae6532 100644
--- a/tools/libxl/libxl.h
+++ b/tools/libxl/libxl.h
@@ -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 */
--
generated by git-patchbot for /home/xen/git/xen.git#master

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.