From: Pino Toscano Date: Mon, 23 Jan 2012 21:56:58 +0000 (-0800) Subject: Hurd: socket uses EAFNOSUPPORT rather than EPFNOSUPPORT. X-Git-Tag: glibc-2.16-tps~1055^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=81c0c9648d8bdaafde6e8e407dce90c21aa115e9;p=thirdparty%2Fglibc.git Hurd: socket uses EAFNOSUPPORT rather than EPFNOSUPPORT. --- diff --git a/ChangeLog b/ChangeLog index f0f301706e9..759cd72cdd8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2012-01-22 Pino Toscano + + * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead + of the non-standard EPFNOSUPPORT. + 2012-01-21 Ulrich Drepper * wcsmbs/uchar.h: Test __STDC_VERSION__. diff --git a/sysdeps/mach/hurd/socket.c b/sysdeps/mach/hurd/socket.c index a707ed90e21..3d9f5b05e7f 100644 --- a/sysdeps/mach/hurd/socket.c +++ b/sysdeps/mach/hurd/socket.c @@ -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 @@ -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);