summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtc%netscape.com <devnull@localhost>1999-05-18 23:07:00 +0000
committerwtc%netscape.com <devnull@localhost>1999-05-18 23:07:00 +0000
commit1218cef7b833ef24a2744f58745948b971c523bb (patch)
tree98a98c27da93ebdc444aaff5a108de6e8e19d6c5
parent8378827d8337f8bfc94349c124f0985a39cdcc4d (diff)
downloadnspr-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.c5
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;