Skip to content

Commit

Permalink
Hurd: socket uses EAFNOSUPPORT rather than EPFNOSUPPORT.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pino Toscano authored and Roland McGrath committed Jan 23, 2012
1 parent d220b11 commit 81c0c96
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2012-01-22 Pino Toscano <toscano.pino@tiscali.it>

* sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
of the non-standard EPFNOSUPPORT.

2012-01-21 Ulrich Drepper <drepper@gmail.com>

* wcsmbs/uchar.h: Test __STDC_VERSION__.
Expand Down
4 changes: 2 additions & 2 deletions sysdeps/mach/hurd/socket.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* Copyright (C) 1992, 93, 94, 95, 96, 97, 98 Free Software Foundation, Inc.
/* Copyright (C) 1992-1998,2012 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
Expand Down Expand Up @@ -57,7 +57,7 @@ __socket (domain, type, protocol)
isn't supported. */
if (err == MACH_SEND_INVALID_DEST || err == MIG_SERVER_DIED
|| err == MIG_BAD_ID || err == EOPNOTSUPP)
err = EPFNOSUPPORT;
err = EAFNOSUPPORT;

if (err)
return __hurd_fail (err);
Expand Down

0 comments on commit 81c0c96

Please sign in to comment.