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

[Xen-devel] Compile error when including xenctrl.h



Hello,

by trying to compile a C++ source having included "xencrtl.h" I got
the following errors on g++ (gcc version 4.1.2 20061115)
and XEN-3.0.4-1:

/usr/include/xenctrl.h:707: error: duplicate 'const'
/usr/include/xenctrl.h:714: error: duplicate 'const'
/usr/include/xenctrl.h:719: error: duplicate 'const'


By changing
line 707 from
const xc_error const *xc_get_last_error(void);
to
xc_error const *xc_get_last_error(void);


line 714 from
typedef void (*xc_error_handler)(const xc_error const* err);
to
typedef void (*xc_error_handler)(xc_error const* err);


line 719 from
void xc_default_error_handler(const xc_error const* err);
to
void xc_default_error_handler(xc_error const* err);

these errors could be solved.

Any comments?


Regards,

Reiner


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

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