From 47e6d7e2f144bf487f88450299d0e92aacff2a04 Mon Sep 17 00:00:00 2001 From: "nelsonb%netscape.com" Date: Mon, 18 Sep 2000 19:53:59 +0000 Subject: [PATCH] Fix bug 52396. Don't compile case ENOSR on platforms that don't have it. git-svn-id: svn://10.0.0.236/trunk@79454 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/security/nss/lib/ssl/unix_err.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mozilla/security/nss/lib/ssl/unix_err.c b/mozilla/security/nss/lib/ssl/unix_err.c index 74bf3133cbc..cf54ef35e9c 100644 --- a/mozilla/security/nss/lib/ssl/unix_err.c +++ b/mozilla/security/nss/lib/ssl/unix_err.c @@ -38,7 +38,7 @@ * may use your version of this file under either the MPL or the * GPL. * - * $Id: unix_err.c,v 1.1 2000-03-31 19:37:17 relyea%netscape.com Exp $ + * $Id: unix_err.c,v 1.2 2000-09-18 19:53:59 nelsonb%netscape.com Exp $ */ #if 0 @@ -505,7 +505,9 @@ void nss_MD_unix_map_default_error(int err) case ENOMEM: prError = PR_OUT_OF_MEMORY_ERROR; break; case ENOPROTOOPT: prError = PR_INVALID_ARGUMENT_ERROR; break; case ENOSPC: prError = PR_NO_DEVICE_SPACE_ERROR; break; +#ifdef ENOSR case ENOSR: prError = PR_INSUFFICIENT_RESOURCES_ERROR; break; +#endif case ENOTCONN: prError = PR_NOT_CONNECTED_ERROR; break; case ENOTDIR: prError = PR_NOT_DIRECTORY_ERROR; break; case ENOTSOCK: prError = PR_NOT_SOCKET_ERROR; break;