Commit 2490feba authored by Alexandre Julliard's avatar Alexandre Julliard

wsock32: Build with msvcrt.

parent 454c4e59
......@@ -2,6 +2,8 @@ MODULE = wsock32.dll
IMPORTLIB = wsock32
IMPORTS = mswsock ws2_32 iphlpapi
EXTRADLLFLAGS = -mno-cygwin
C_SRCS = \
protocol.c \
service.c \
......
......@@ -19,20 +19,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#define USE_WS_PREFIX
#include "config.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 "winbase.h"
......@@ -40,7 +27,6 @@
#include "nspapi.h"
#include "wine/debug.h"
#include "wine/unicode.h"
WINE_DEFAULT_DEBUG_CHANNEL(winsock);
......@@ -49,13 +35,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(winsock);
*/
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 ) );
#else
return 0;
#endif
}
/*****************************************************************************
......@@ -63,11 +43,8 @@ UINT WINAPI WSOCK32_inet_network(const char *cp)
*/
struct netent * WINAPI WSOCK32_getnetbyname(const char *name)
{
#ifdef HAVE_GETNETBYNAME
return getnetbyname(name);
#else
ERR( "%s: not supported\n", debugstr_a(name) );
return NULL;
#endif
}
static DWORD map_service(DWORD wsaflags)
......
......@@ -18,8 +18,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "config.h"
#include <stdarg.h>
#include "windef.h"
......
......@@ -19,8 +19,6 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
#include "config.h"
#include <stdarg.h>
#include "windef.h"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment