Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
5831a0bf
Commit
5831a0bf
authored
Jun 06, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
jsproxy: Build with Windows sockets.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
29ea8b42
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
24 deletions
+2
-24
Makefile.in
dlls/jsproxy/Makefile.in
+1
-1
main.c
dlls/jsproxy/main.c
+1
-23
No files found.
dlls/jsproxy/Makefile.in
View file @
5831a0bf
MODULE
=
jsproxy.dll
IMPORTS
=
uuid oleaut32 ole32
IMPORTS
=
uuid oleaut32 ole32
ws2_32
IMPORTLIB
=
jsproxy
C_SRCS
=
\
...
...
dlls/jsproxy/main.c
View file @
5831a0bf
...
...
@@ -21,29 +21,12 @@
#include <stdarg.h>
#include <sys/types.h>
#ifdef HAVE_SYS_SOCKET_H
# include <sys/socket.h>
#endif
#ifdef HAVE_NETINET_IN_H
# include <netinet/in.h>
#endif
#ifdef HAVE_NETDB_H
# include <netdb.h>
#endif
#if defined(__MINGW32__) || defined (_MSC_VER)
# include <ws2tcpip.h>
#else
# define closesocket close
# define ioctlsocket ioctl
#endif
#include "windef.h"
#include "winbase.h"
#ifndef __MINGW32__
#define USE_WS_PREFIX
#endif
#include "winsock2.h"
#include "ws2ipdef.h"
#include "ws2tcpip.h"
#include "winnls.h"
#include "wininet.h"
#define COBJMACROS
...
...
@@ -327,7 +310,6 @@ static void printf_addr( const WCHAR *fmt, WCHAR *buf, struct sockaddr_in *addr
static
HRESULT
dns_resolve
(
const
WCHAR
*
hostname
,
VARIANT
*
result
)
{
#ifdef HAVE_GETADDRINFO
static
const
WCHAR
fmtW
[]
=
{
'%'
,
'u'
,
'.'
,
'%'
,
'u'
,
'.'
,
'%'
,
'u'
,
'.'
,
'%'
,
'u'
,
0
};
WCHAR
addr
[
16
];
struct
addrinfo
*
ai
,
*
elem
;
...
...
@@ -356,10 +338,6 @@ static HRESULT dns_resolve( const WCHAR *hostname, VARIANT *result )
V_VT
(
result
)
=
VT_BSTR
;
V_BSTR
(
result
)
=
SysAllocString
(
addr
);
return
S_OK
;
#else
FIXME
(
"getaddrinfo not found at build time
\n
"
);
return
S_FALSE
;
#endif
}
static
HRESULT
WINAPI
dispex_InvokeEx
(
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment