Author: rfm Date: Sat Jun 25 21:00:43 2016 New Revision: 39922 URL: http://svn.gna.org/viewcvs/gnustep?rev=39922&view=rev Log: Work around missing getsockopt support in hurd.
Modified: libs/base/trunk/ChangeLog libs/base/trunk/Source/NSMessagePort.m Modified: libs/base/trunk/ChangeLog URL: http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/ChangeLog?rev=39922&r1=39921&r2=39922&view=diff ============================================================================== --- libs/base/trunk/ChangeLog (original) +++ libs/base/trunk/ChangeLog Sat Jun 25 21:00:43 2016 @@ -2,7 +2,8 @@ * Source/NSMessagePort.m: * config/config.reuseaddr.c: - SO_REUSEADDR fixes. + Hack to work around Hurd local domain socket bug. + Plus don't try to set SO_REUSEADDR on local domain sockets anyway. 2016-06-25 Richard Frith-Macdonald <r...@gnu.org> Modified: libs/base/trunk/Source/NSMessagePort.m URL: http://svn.gna.org/viewcvs/gnustep/libs/base/trunk/Source/NSMessagePort.m?rev=39922&r1=39921&r2=39922&view=diff ============================================================================== --- libs/base/trunk/Source/NSMessagePort.m (original) +++ libs/base/trunk/Source/NSMessagePort.m Sat Jun 25 21:00:43 2016 @@ -893,6 +893,11 @@ int res = 0; unsigned len = sizeof(res); +/* Currently gnu hurd doesn't support getsockopt on local domain sockets + * and fails with a 'protocol not supported' error. + * We therefore just hope the connect was a success. + */ +#if !defined(__gnu_hurd__) if (getsockopt(desc, SOL_SOCKET, SO_ERROR, (char*)&res, &len) != 0) { state = GS_H_UNCON; @@ -905,6 +910,7 @@ [NSError _systemError: res]); } else +#endif { NSData *d = newDataWithEncodedPort([self recvPort]); _______________________________________________ Gnustep-cvs mailing list Gnustep-cvs@gna.org https://mail.gna.org/listinfo/gnustep-cvs