Skip to content

Commit

Permalink
add in scary ifdef for win32 socket init, i think
Browse files Browse the repository at this point in the history
  • Loading branch information
RJ committed Jul 9, 2009
1 parent bee1ead commit e492348
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/portfwd.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -18,6 +18,15 @@ Portfwd::~Portfwd()
bool bool
Portfwd::init(unsigned int timeout) Portfwd::init(unsigned int timeout)
{ {
#ifdef WIN32
WSADATA wsaData;
int nResult = WSAStartup(MAKEWORD(2,2), &wsaData);
if(nResult != NO_ERROR)
{
fprintf(stderr, "WSAStartup() failed.\n");
return -1;
}
#endif
struct UPNPDev * devlist; struct UPNPDev * devlist;
struct UPNPDev * dev; struct UPNPDev * dev;
char * descXML; char * descXML;
Expand Down

0 comments on commit e492348

Please sign in to comment.