installed WIN32/Makefile.Host

This commit is contained in:
Jeff Hill
1997-01-10 00:12:21 +00:00
parent 7f3c5e6cbb
commit 2fc75ca08e
32 changed files with 3002 additions and 6 deletions
+19
View File
@@ -0,0 +1,19 @@
TOP = ../../..
include $(TOP)/config/CONFIG_BASE
INC += dbDefs.h
INC += camacLib.h
INC += epicsTypes.h
INC += epicsVersion.h
INC += gsd_sync_defs.h
INC += module_types.h
INC += shareLib.h
INC += createSoftLinks.sh
INC += bsdProto.h
INC += task_params.h
INC += osiMutexNOOP.h
OSINC += osiSock.h
include $(TOP)/config/RULES.Host
+40
View File
@@ -0,0 +1,40 @@
#ifdef __cplusplus
extern "C" {
#endif
#pragma warning (disable:4237)
#include <winsock.h>
void ipAddrToA (const struct sockaddr_in *pInetAddr,
char *pBuf, const unsigned bufSize);
#ifdef __cplusplus
}
#endif
#define SOCKERRNO WSAGetLastError()
#define socket_close(S) closesocket(S)
#define socket_ioctl(A,B,C) ioctlsocket(A,B,(unsigned long *) C)
#define MAXHOSTNAMELEN 75
#define IPPORT_USERRESERVED 5000U
#define EWOULDBLOCK WSAEWOULDBLOCK
#define ENOBUFS WSAENOBUFS
#define ECONNRESET WSAECONNRESET
#define ETIMEDOUT WSAETIMEDOUT
#define EADDRINUSE WSAEADDRINUSE
#define ECONNREFUSED WSAECONNREFUSED
#define ECONNABORTED WSAECONNABORTED
/*
* Under WIN32, FD_SETSIZE is the max. number of sockets,
* not the max. fd value that you use in select().
*
* Therefore, it is difficult to detemine if any given
* fd can be used with FD_SET(), FD_CLR(), and FD_ISSET().
*/
#define FD_IN_FDSET(FD) (1)