From 134fe516828bc635c349fb9d0aa0a21e32457b9c Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Fri, 29 May 1998 19:55:25 +0000 Subject: [PATCH] added sock ioctl() typedef and the loop back address --- src/include/os/vxWorks/osiSock.h | 9 +++++++++ src/libCom/osi/os/vxWorks/osdSock.h | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/src/include/os/vxWorks/osiSock.h b/src/include/os/vxWorks/osiSock.h index 4f099c910..196f93d50 100644 --- a/src/include/os/vxWorks/osiSock.h +++ b/src/include/os/vxWorks/osiSock.h @@ -30,7 +30,12 @@ typedef int SOCKET; #define SOCKERRNO errno #define SOCKERRSTR (strerror(SOCKERRNO)) #define socket_close(S) close(S) +/* + * it is quite lame on WRS's part to assume that + * a ptr is always the same as an int + */ #define socket_ioctl(A,B,C) ioctl(A,B,(int)C) +typedef int osiSockIoctl_t; #define FD_IN_FDSET(FD) ((FD)=0) @@ -48,6 +53,10 @@ typedef int SOCKET; #define SOCK_EINTR EINTR #define SOCK_EPIPE EPIPE +#ifndef INADDR_LOOPBACK +#define INADDR_LOOPBACK 0x7F000001 +#endif + #endif /*osiSockH*/ diff --git a/src/libCom/osi/os/vxWorks/osdSock.h b/src/libCom/osi/os/vxWorks/osdSock.h index 4f099c910..196f93d50 100644 --- a/src/libCom/osi/os/vxWorks/osdSock.h +++ b/src/libCom/osi/os/vxWorks/osdSock.h @@ -30,7 +30,12 @@ typedef int SOCKET; #define SOCKERRNO errno #define SOCKERRSTR (strerror(SOCKERRNO)) #define socket_close(S) close(S) +/* + * it is quite lame on WRS's part to assume that + * a ptr is always the same as an int + */ #define socket_ioctl(A,B,C) ioctl(A,B,(int)C) +typedef int osiSockIoctl_t; #define FD_IN_FDSET(FD) ((FD)=0) @@ -48,6 +53,10 @@ typedef int SOCKET; #define SOCK_EINTR EINTR #define SOCK_EPIPE EPIPE +#ifndef INADDR_LOOPBACK +#define INADDR_LOOPBACK 0x7F000001 +#endif + #endif /*osiSockH*/