summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tcpsocket.cpp2
-rw-r--r--src/udpsocket.cpp4
-rw-r--r--src/udpsocket.h3
3 files changed, 8 insertions, 1 deletions
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 )
401 fcntl( nTcpSocket, F_SETFL, fcntl( nTcpSocket, F_GETFL, 0 ) | O_NONBLOCK ); 401 fcntl( nTcpSocket, F_SETFL, fcntl( nTcpSocket, F_GETFL, 0 ) | O_NONBLOCK );
402 } 402 }
403#else 403#else
404 u_Bu::size iMode; 404 u_long iMode;
405 if( bBlocking ) 405 if( bBlocking )
406 iMode = 0; 406 iMode = 0;
407 else 407 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 @@
5 * terms of the license contained in the file LICENSE. 5 * terms of the license contained in the file LICENSE.
6 */ 6 */
7 7
8#ifndef WIN32 //not on windows
9
8#include "bu/udpsocket.h" 10#include "bu/udpsocket.h"
9 11
10#include "bu/sio.h" 12#include "bu/sio.h"
@@ -238,3 +240,5 @@ Bu::String Bu::UdpSocket::getLocation() const
238 throw Bu::UnsupportedException(); 240 throw Bu::UnsupportedException();
239} 241}
240 242
243#endif
244
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 @@
4 * This file is part of the libbu++ library and is released under the 4 * This file is part of the libbu++ library and is released under the
5 * terms of the license contained in the file LICENSE. 5 * terms of the license contained in the file LICENSE.
6 */ 6 */
7#ifndef WIN32 //not on windows
7 8
8#ifndef BU_UDP_SOCKET_H 9#ifndef BU_UDP_SOCKET_H
9#define BU_UDP_SOCKET_H 10#define BU_UDP_SOCKET_H
@@ -79,3 +80,5 @@ namespace Bu
79}; 80};
80 81
81#endif 82#endif
83
84#endif