wpcap: Implement wsockinit.
This commit is contained in:
parent
f0f57c22bf
commit
b2962fb87e
|
@ -1,4 +1,5 @@
|
|||
MODULE = wpcap.dll
|
||||
DELAYIMPORTS = ws2_32
|
||||
EXTRALIBS = @LIBPCAP@
|
||||
|
||||
C_SRCS = \
|
||||
|
|
|
@ -19,6 +19,7 @@
|
|||
*/
|
||||
|
||||
#include <pcap/pcap.h>
|
||||
#include "winsock2.h"
|
||||
#include "windef.h"
|
||||
#include "winbase.h"
|
||||
#include "wine/debug.h"
|
||||
|
@ -273,3 +274,11 @@ int CDECL wine_pcap_stats(pcap_t *p, struct pcap_stat *ps)
|
|||
TRACE("(%p %p)\n", p, ps);
|
||||
return pcap_stats(p, ps);
|
||||
}
|
||||
|
||||
int CDECL wine_wsockinit(void)
|
||||
{
|
||||
WSADATA wsadata;
|
||||
TRACE("()\n");
|
||||
if (WSAStartup(MAKEWORD(1,1), &wsadata)) return -1;
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -75,4 +75,4 @@
|
|||
@ cdecl pcap_stats(ptr ptr) wine_pcap_stats
|
||||
@ stub pcap_stats_ex
|
||||
@ stub pcap_strerror
|
||||
@ stub wsockinit
|
||||
@ cdecl wsockinit() wine_wsockinit
|
||||
|
|
Loading…
Reference in New Issue