summaryrefslogtreecommitdiff
path: root/e_os.h
diff options
context:
space:
mode:
authorRichard Levitte <levitte@openssl.org>2004-06-28 13:09:34 +0000
committerRichard Levitte <levitte@openssl.org>2004-06-28 13:09:34 +0000
commitae6a9be99610d17322b177aa17dd66c86a3c3c2a (patch)
tree29b18aa04bccb52beefff85e5377f9ac033af5eb /e_os.h
parent07e88f6269b97909ab3964e3a0f33f3cd8b0674e (diff)
downloadopenssl-new-ae6a9be99610d17322b177aa17dd66c86a3c3c2a.tar.gz
Recent (and not so recent) changes from HEAD.
Diffstat (limited to 'e_os.h')
-rw-r--r--e_os.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/e_os.h b/e_os.h
index 09774165eb..79f76ca109 100644
--- a/e_os.h
+++ b/e_os.h
@@ -181,6 +181,11 @@ extern "C" {
#define closesocket(s) close(s)
#define readsocket(s,b,n) read((s),(b),(n))
#define writesocket(s,b,n) write((s),(char *)(b),(n))
+#elif defined(OPENSSL_SYS_NETWARE)
+#define get_last_socket_error() WSAGetLastError()
+#define clear_socket_error() WSASetLastError(0)
+#define readsocket(s,b,n) recv((s),(b),(n),0)
+#define writesocket(s,b,n) send((s),(b),(n),0)
#else
#define get_last_socket_error() errno
#define clear_socket_error() errno=0