installed WIN32/Makefile.Host
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user