mirror of git://sourceware.org/git/glibc.git
hurd: fix using hurd.h in C++ programs
* hurd/hurd.h: Cast errno constants to error_t to fix usage in C++ programs.
This commit is contained in:
parent
90ab295a9e
commit
71be79a25f
|
@ -1,3 +1,8 @@
|
|||
2016-12-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
|
||||
|
||||
* hurd/hurd.h: Cast errno constants to error_t to fix usage in C++
|
||||
programs.
|
||||
|
||||
2016-12-02 Joseph Myers <joseph@codesourcery.com>
|
||||
|
||||
[BZ #20916]
|
||||
|
|
|
@ -54,15 +54,15 @@ __hurd_fail (error_t err)
|
|||
case EMACH_SEND_INVALID_DEST:
|
||||
case EMIG_SERVER_DIED:
|
||||
/* The server has disappeared! */
|
||||
err = EIEIO;
|
||||
err = (error_t) EIEIO;
|
||||
break;
|
||||
|
||||
case KERN_NO_SPACE:
|
||||
err = ENOMEM;
|
||||
err = (error_t) ENOMEM;
|
||||
break;
|
||||
|
||||
case KERN_INVALID_ARGUMENT:
|
||||
err = EINVAL;
|
||||
err = (error_t) EINVAL;
|
||||
break;
|
||||
|
||||
case 0:
|
||||
|
|
Loading…
Reference in New Issue