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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user