fix for (compiler?) bug in solaris 2.4 bind
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@4963 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -147,7 +147,11 @@ try_one (struct x_socket *s, int dpy, const char *pattern)
|
|||||||
sizeof(addr)) < 0) {
|
sizeof(addr)) < 0) {
|
||||||
close (fd);
|
close (fd);
|
||||||
if (errno == EADDRINUSE ||
|
if (errno == EADDRINUSE ||
|
||||||
errno == EACCES) /* Cray return EACCESS */
|
errno == EACCES /* Cray return EACCESS */
|
||||||
|
#ifdef ENOTUNIQ
|
||||||
|
|| errno == ENOTUNIQ /* bug in Solaris 2.4 */
|
||||||
|
#endif
|
||||||
|
)
|
||||||
return 1;
|
return 1;
|
||||||
else
|
else
|
||||||
return -1;
|
return -1;
|
||||||
|
Reference in New Issue
Block a user