wsock32: Build with msvcrt.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
454c4e599c
commit
2490febab4
|
@ -2,6 +2,8 @@ MODULE = wsock32.dll
|
||||||
IMPORTLIB = wsock32
|
IMPORTLIB = wsock32
|
||||||
IMPORTS = mswsock ws2_32 iphlpapi
|
IMPORTS = mswsock ws2_32 iphlpapi
|
||||||
|
|
||||||
|
EXTRADLLFLAGS = -mno-cygwin
|
||||||
|
|
||||||
C_SRCS = \
|
C_SRCS = \
|
||||||
protocol.c \
|
protocol.c \
|
||||||
service.c \
|
service.c \
|
||||||
|
|
|
@ -19,20 +19,7 @@
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define USE_WS_PREFIX
|
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <stdio.h>
|
|
||||||
#include <string.h>
|
|
||||||
|
|
||||||
#ifdef HAVE_ARPA_INET_H
|
|
||||||
#include <arpa/inet.h>
|
|
||||||
#endif
|
|
||||||
#ifdef HAVE_NETDB_H
|
|
||||||
#include <netdb.h>
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "windef.h"
|
#include "windef.h"
|
||||||
#include "winbase.h"
|
#include "winbase.h"
|
||||||
|
@ -40,7 +27,6 @@
|
||||||
#include "nspapi.h"
|
#include "nspapi.h"
|
||||||
|
|
||||||
#include "wine/debug.h"
|
#include "wine/debug.h"
|
||||||
#include "wine/unicode.h"
|
|
||||||
|
|
||||||
WINE_DEFAULT_DEBUG_CHANNEL(winsock);
|
WINE_DEFAULT_DEBUG_CHANNEL(winsock);
|
||||||
|
|
||||||
|
@ -49,13 +35,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(winsock);
|
||||||
*/
|
*/
|
||||||
UINT WINAPI WSOCK32_inet_network(const char *cp)
|
UINT WINAPI WSOCK32_inet_network(const char *cp)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_INET_NETWORK
|
|
||||||
return inet_network(cp);
|
|
||||||
#elif defined(HAVE_INET_ADDR)
|
|
||||||
return ntohl( inet_addr( cp ) );
|
return ntohl( inet_addr( cp ) );
|
||||||
#else
|
|
||||||
return 0;
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*****************************************************************************
|
/*****************************************************************************
|
||||||
|
@ -63,11 +43,8 @@ UINT WINAPI WSOCK32_inet_network(const char *cp)
|
||||||
*/
|
*/
|
||||||
struct netent * WINAPI WSOCK32_getnetbyname(const char *name)
|
struct netent * WINAPI WSOCK32_getnetbyname(const char *name)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_GETNETBYNAME
|
ERR( "%s: not supported\n", debugstr_a(name) );
|
||||||
return getnetbyname(name);
|
|
||||||
#else
|
|
||||||
return NULL;
|
return NULL;
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static DWORD map_service(DWORD wsaflags)
|
static DWORD map_service(DWORD wsaflags)
|
||||||
|
|
|
@ -18,8 +18,6 @@
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
#include "windef.h"
|
#include "windef.h"
|
||||||
|
|
|
@ -19,8 +19,6 @@
|
||||||
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include "config.h"
|
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
|
|
||||||
#include "windef.h"
|
#include "windef.h"
|
||||||
|
|
Loading…
Reference in New Issue