diff options
author | Richard Levitte <levitte@openssl.org> | 2003-09-28 14:07:01 +0000 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2003-09-28 14:07:01 +0000 |
commit | 16d2a7caefc8a35c0371209a618722be189c4e81 (patch) | |
tree | 1f8b98ea2b20e1e586c4733169eac26f2b6983d8 /e_os.h | |
parent | b7b5cd6132978a2453007e881f359b0398ded9ae (diff) |
Further VxWorks changes from Bob Bradley <bob@chaoticsoftware.com>, this
time involving VxWorks on MIPS
Diffstat (limited to 'e_os.h')
-rw-r--r-- | e_os.h | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -174,6 +174,13 @@ extern "C" { #define closesocket(s) close(s) #define readsocket(s,b,n) recv((s),(b),(n),0) #define writesocket(s,b,n) send((s),(b),(n),0) +#elif defined(OPENSSL_SYS_VXWORKS) +#define get_last_socket_error() errno +#define clear_socket_error() errno=0 +#define ioctlsocket(a,b,c) ioctl((a),(b),(int)(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)) #else #define get_last_socket_error() errno #define clear_socket_error() errno=0 @@ -519,10 +526,6 @@ extern char *sys_errlist[]; extern int sys_nerr; #define TTY_STRUCT int #define sleep(a) taskDelay((a) * sysClkRateGet()) -#if defined(ioctlsocket) -#undef ioctlsocket -#endif -#define ioctlsocket(a,b,c) ioctl((a),(b),*(int*)(c)) #include <vxWorks.h> #include <sockLib.h> |