Posted: 04/03/12 03:56:59
-- Modified: 07/05/12 08:35:23
by
KimR
-- Modified 3 Times
I patched (hacked) the socket compile error I got.
In module tango.net.device.Berkeley;
Line 216:
version (Win32)
{
pragma (lib, "ws2_32.lib");
private import tango.sys.win32.WsaSock;
private typedef int socket_t = ~0;
private extern (Windows)
{
remove (comment), the lines listed in the below section - public extern (Windows) i.e.:
//int bind(socket_t s, Address.sockaddr* name, int namelen);
}
added Line 288:
public extern (Windows)
{
int bind(socket_t s, Address.sockaddr* name, int namelen);
int setsockopt(socket_t s, int level, int optname, void* optval, int optlen);
bool function (socket_t, uint, void*, DWORD, DWORD, DWORD, DWORD*, OVERLAPPED*) AcceptEx;
bool function (socket_t, HANDLE, DWORD, DWORD, OVERLAPPED*, void*, DWORD) TransmitFile;
bool function (socket_t, void*, int, void*, DWORD, DWORD*, OVERLAPPED*) ConnectEx;
}
As a note: I don't think I am using the socket code so I don't know if the hack works.
dmd 1.073 + latest tango from trunk