aboutsummaryrefslogtreecommitdiff
path: root/net.h
diff options
context:
space:
mode:
Diffstat (limited to 'net.h')
-rw-r--r--net.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/net.h b/net.h
index 4011a3ef75..2eece2c061 100644
--- a/net.h
+++ b/net.h
@@ -1,6 +1,12 @@
// Copyright (c) 2009 Satoshi Nakamoto
// Distributed under the MIT/X11 software license, see the accompanying
// file license.txt or http://www.opensource.org/licenses/mit-license.php.
+
+#ifndef __WXMSW__
+#define closesocket(s) close(s)
+#define INVALID_SOCKET (SOCKET)(~0)
+typedef u_int SOCKET;
+#endif
class CMessageHeader;
class CAddress;