Skip to content

Commit

Permalink
drivers.win32: Fix compilation/linking
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberShadow committed Apr 6, 2013
1 parent 557bc37 commit 0eb2bbb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/vibe/core/drivers/win32.d
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ import std.utf;
enum WM_USER_SIGNAL = WM_USER+101;
enum WM_USER_SOCKET = WM_USER+102;

pragma(lib, "wsock32.lib");
pragma(lib, "wsock32");
pragma(lib, "ws2_32");

/******************************************************************************/
/* class Win32EventDriver */
Expand Down Expand Up @@ -917,7 +918,7 @@ class Win32UDPConnection : UDPConnection, SocketEventHandler {
NetworkAddress from;
from.family = m_bindAddress.family;
while(true){
uint addr_len = from.sockAddrLen;
socklen_t addr_len = from.sockAddrLen;
auto ret = .recvfrom(m_socket, buf.ptr, cast(int)buf.length, 0, from.sockAddr, &addr_len);
if( ret > 0 ){
if( peer_address ) *peer_address = from;
Expand Down

0 comments on commit 0eb2bbb

Please sign in to comment.