diff options
author | David <david@xagasoft.com> | 2009-01-21 03:45:09 +0000 |
---|---|---|
committer | David <david@xagasoft.com> | 2009-01-21 03:45:09 +0000 |
commit | e27a084118b8810b6bd442c560df46ce161a9a87 (patch) | |
tree | 9ac8c97d0d2760809260c49c93eb9f63e28ce0cb /src | |
parent | 40360b48f4d9ea82200528411a0ed62d2c0e10bb (diff) | |
download | libbu++-e27a084118b8810b6bd442c560df46ce161a9a87.tar.gz libbu++-e27a084118b8810b6bd442c560df46ce161a9a87.tar.bz2 libbu++-e27a084118b8810b6bd442c560df46ce161a9a87.tar.xz libbu++-e27a084118b8810b6bd442c560df46ce161a9a87.zip |
david - #define SHUT_RDWR (SD_BOTH) if WIN32... blech... windows...
Diffstat (limited to 'src')
-rw-r--r-- | src/socket.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/socket.cpp b/src/socket.cpp index 47e33b2..8937fd1 100644 --- a/src/socket.cpp +++ b/src/socket.cpp | |||
@@ -131,6 +131,11 @@ void Bu::Socket::close() | |||
131 | #ifndef WIN32 | 131 | #ifndef WIN32 |
132 | fsync( nSocket ); | 132 | fsync( nSocket ); |
133 | #endif | 133 | #endif |
134 | #ifdef WIN32 | ||
135 | #ifndef SHUT_RDWR | ||
136 | #define SHUT_RDWR (SD_BOTH) | ||
137 | #endif | ||
138 | #endif | ||
134 | shutdown( nSocket, SHUT_RDWR ); | 139 | shutdown( nSocket, SHUT_RDWR ); |
135 | ::close( nSocket ); | 140 | ::close( nSocket ); |
136 | } | 141 | } |