diff options
author | Richard Levitte <levitte@openssl.org> | 2002-10-09 17:40:48 +0400 |
---|---|---|
committer | Richard Levitte <levitte@openssl.org> | 2002-10-09 17:40:48 +0400 |
commit | 6a89a25c27df0677e78567cd02c77f30e80814af (patch) | |
tree | 9c29d0eea93980a2a854e639852ed601f712a6e0 /e_os.h | |
parent | 001ab3abad45752c13af5396a47551f46a6ebfdb (diff) |
Add a few more VxWorks targets.
Correct misspelled VXWORKS macros.
Add VXWORKS identifying macros to e_os2.h.
Add required inclusions and mappings for VxWorks in e_os.h.
A few small modifications to make OpenSSL build and work on VxWorks.
PR: 253, except for the change that was handled in an earlier
commit, and a request for easy build of just parts of OpenSSL.
Diffstat (limited to 'e_os.h')
-rw-r--r-- | e_os.h | 30 |
1 files changed, 30 insertions, 0 deletions
@@ -485,6 +485,36 @@ extern char *sys_errlist[]; extern int sys_nerr; # define strcasecmp stricmp #endif +/* vxworks */ +#if defined(OPENSSL_SYS_VXWORKS) +#include <ioLib.h> +#include <tickLib.h> +#include <sysLib.h> + +#define TTY_STRUCT int + +#define sleep(a) taskDelay((a) * sysClkRateGet()) +#if defined(ioctlsocket) +#undef ioctlsocket +#endif +#define ioctlsocket(a,b,c) ioctl((a),(b),*(c)) + +#include <vxWorks.h> +#include <sockLib.h> +#include <taskLib.h> + +#define getpid taskIdSelf + +/* NOTE: these are implemented by helpers in database app! + * if the database is not linked, we need to implement them + * elswhere */ +struct hostent *gethostbyname(const char *name); +struct hostent *gethostbyaddr(const char *addr, int length, int type); +struct servent *getservbyname(const char *name, const char *proto); + +#endif +/* end vxworks */ + #ifdef __cplusplus } #endif |