diff options
author | wtc%netscape.com <devnull@localhost> | 1999-05-18 23:07:00 +0000 |
---|---|---|
committer | wtc%netscape.com <devnull@localhost> | 1999-05-18 23:07:00 +0000 |
commit | 1218cef7b833ef24a2744f58745948b971c523bb (patch) | |
tree | 98a98c27da93ebdc444aaff5a108de6e8e19d6c5 | |
parent | 8378827d8337f8bfc94349c124f0985a39cdcc4d (diff) | |
download | nspr-hg-1218cef7b833ef24a2744f58745948b971c523bb.tar.gz |
On SCO OpenServer 5, ENOBUFS and ENOSR are defined to be the
same thing. So check whether they are equal. Thanks to
Brian Ostrom <briano@netscape.com> for the bug fix.
-rw-r--r-- | pr/src/md/unix/unix_errors.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pr/src/md/unix/unix_errors.c b/pr/src/md/unix/unix_errors.c index 7de62418..e7240814 100644 --- a/pr/src/md/unix/unix_errors.c +++ b/pr/src/md/unix/unix_errors.c @@ -128,7 +128,10 @@ static void _MD_unix_map_default_error(int err) case ENFILE: prError = PR_SYS_DESC_TABLE_FULL_ERROR; break; -#ifdef ENOBUFS + /* + * On SCO OpenServer 5, ENOBUFS is defined as ENOSR. + */ +#if defined(ENOBUFS) && (ENOBUFS != ENOSR) case ENOBUFS: prError = PR_INSUFFICIENT_RESOURCES_ERROR; break; |