[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] libxl: fix build on platforms where openpty's parameters are not const.
# HG changeset patch # User Christoph Egger <Christoph.Egger@xxxxxxx> # Date 1337262343 -3600 # Node ID 28831853d1a8c770c29ab6aa452ffda869a74db2 # Parent 8dce7a4121b9debb47b5c05f1b2741cbde5df56a libxl: fix build on platforms where openpty's parameters are not const. Such as NetBSD. Fixes this build error: libxl_aoutils.c: In function 'libxl__openptys': libxl_aoutils.c:281:13: error: passing argument 4 of 'openpty' discards qualifiers from pointer target type /usr/include/util.h:92:6: note: expected 'struct termios *' but argument is of type 'const struct termios *' libxl_aoutils.c:281:13: error: passing argument 5 of 'openpty' discards qualifiers from pointer target type /usr/include/util.h:92:6: note: expected 'struct winsize *' but argument is of type 'const struct winsize *' Signed-off-by: Christoph Egger <Christoph.Egger@xxxxxxx> Acked-by: Roger Pau Monne <roger.pau@xxxxxxxxxx> Acked-by: Ian Campbell <ian.campbell@xxxxxxxxxx> Committed-by: Ian Campbell <ian.campbell@xxxxxxxxxx> --- diff -r 8dce7a4121b9 -r 28831853d1a8 tools/libxl/libxl_aoutils.c --- a/tools/libxl/libxl_aoutils.c Thu May 17 14:45:42 2012 +0100 +++ b/tools/libxl/libxl_aoutils.c Thu May 17 14:45:43 2012 +0100 @@ -230,8 +230,8 @@ static void openpty_exited(libxl__egc *e } int libxl__openptys(libxl__openpty_state *op, - const struct termios *termp, - const struct winsize *winp) { + struct termios *termp, + struct winsize *winp) { /* * This is completely crazy. openpty calls grantpt which the spec * says may fork, and may not be called with a SIGCHLD handler. diff -r 8dce7a4121b9 -r 28831853d1a8 tools/libxl/libxl_internal.h --- a/tools/libxl/libxl_internal.h Thu May 17 14:45:42 2012 +0100 +++ b/tools/libxl/libxl_internal.h Thu May 17 14:45:43 2012 +0100 @@ -1740,8 +1740,8 @@ struct libxl__openpty_result { }; int libxl__openptys(libxl__openpty_state *op, - const struct termios *termp, - const struct winsize *winp); + struct termios *termp, + struct winsize *winp); /*----- bootloader -----*/ _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |