+2016-11-27 Samuel Thibault <samuel.thibault@ens-lyon.org>
+
+ * hurd/hurd/signal.h (HURD_MSGPORT_RPC): Cast expressions results to
+ error_t to fix usage in C++ programs.
+
2016-11-26 Joseph Myers <joseph@codesourcery.com>
* scripts/build-many-glibcs.py: Import datetime module.
do \
{ \
/* Get the message port. */ \
- __err = (fetch_msgport_expr); \
+ __err = (error_t) (fetch_msgport_expr); \
if (__err) \
break; \
/* Get the reference port. */ \
- __err = (fetch_refport_expr); \
+ __err = (error_t) (fetch_refport_expr); \
if (__err) \
{ \
/* Couldn't get it; deallocate MSGPORT and fail. */ \
__mach_port_deallocate (__mach_task_self (), msgport); \
break; \
} \
- __err = (rpc_expr); \
+ __err = (error_t) (rpc_expr); \
__mach_port_deallocate (__mach_task_self (), msgport); \
if ((dealloc_refport) && refport != MACH_PORT_NULL) \
__mach_port_deallocate (__mach_task_self (), refport); \