From 66669b2b9d392f6ae8f2c2a6acf7752bc0b6bc7e Mon Sep 17 00:00:00 2001 From: David Date: Mon, 21 Feb 2011 19:09:49 +0000 Subject: david - udp not building on windows for now && fixed a windows tcpsocket thing --- src/tcpsocket.cpp | 2 +- src/udpsocket.cpp | 4 ++++ src/udpsocket.h | 3 +++ 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/tcpsocket.cpp b/src/tcpsocket.cpp index 52dfc5c..105529a 100644 --- a/src/tcpsocket.cpp +++ b/src/tcpsocket.cpp @@ -401,7 +401,7 @@ void Bu::TcpSocket::setBlocking( bool bBlocking ) fcntl( nTcpSocket, F_SETFL, fcntl( nTcpSocket, F_GETFL, 0 ) | O_NONBLOCK ); } #else - u_Bu::size iMode; + u_long iMode; if( bBlocking ) iMode = 0; else diff --git a/src/udpsocket.cpp b/src/udpsocket.cpp index 91e04c1..b577302 100644 --- a/src/udpsocket.cpp +++ b/src/udpsocket.cpp @@ -5,6 +5,8 @@ * terms of the license contained in the file LICENSE. */ +#ifndef WIN32 //not on windows + #include "bu/udpsocket.h" #include "bu/sio.h" @@ -238,3 +240,5 @@ Bu::String Bu::UdpSocket::getLocation() const throw Bu::UnsupportedException(); } +#endif + diff --git a/src/udpsocket.h b/src/udpsocket.h index 8fe114d..f228f08 100644 --- a/src/udpsocket.h +++ b/src/udpsocket.h @@ -4,6 +4,7 @@ * This file is part of the libbu++ library and is released under the * terms of the license contained in the file LICENSE. */ +#ifndef WIN32 //not on windows #ifndef BU_UDP_SOCKET_H #define BU_UDP_SOCKET_H @@ -79,3 +80,5 @@ namespace Bu }; #endif + +#endif -- cgit v1.2.3