]> xenbits.xensource.com Git - xen.git/commit
libxl: fix build on platforms where openpty's parameters are not const.
authorChristoph Egger <Christoph.Egger@amd.com>
Thu, 17 May 2012 13:45:43 +0000 (14:45 +0100)
committerChristoph Egger <Christoph.Egger@amd.com>
Thu, 17 May 2012 13:45:43 +0000 (14:45 +0100)
commit8aae4f14458bf771a696d8d36b87069718447017
tree985cb9976b1d3c96bf860081e08146f95e04782a
parent2ea83794a601c3598dec43443a18863c7ac1317f
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@amd.com>
Acked-by: Roger Pau Monne <roger.pau@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl_aoutils.c
tools/libxl/libxl_internal.h