Fix bug 52396. Don't compile case ENOSR on platforms that don't have it.

This commit is contained in:
nelsonb%netscape.com 2000-09-18 19:53:59 +00:00
Родитель aa0919a0aa
Коммит 574fcbedd2
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -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;