summaryrefslogtreecommitdiff
path: root/include/sockets.h
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-09-02 08:30:54 -0400
committerAdam <Adam@anope.org>2012-09-02 08:30:54 -0400
commit1af64a9bbb150b9daae3944d6aae86864c271103 (patch)
treec24a1ac6793e997f83ac66810b611f88855fcd90 /include/sockets.h
parente3d5140dcc936ff411c438b7e3997104cb5f085a (diff)
Fix Windows
Diffstat (limited to 'include/sockets.h')
-rw-r--r--include/sockets.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/sockets.h b/include/sockets.h
index 8f863b59c..8b669bbde 100644
--- a/include/sockets.h
+++ b/include/sockets.h
@@ -12,9 +12,11 @@
#ifndef SOCKETS_H
#define SOCKETS_H
+#ifndef _WIN32
#include <netinet/in.h>
#include <sys/types.h>
#include <sys/socket.h>
+#endif
#include "anope.h"
@@ -482,8 +484,8 @@ class CoreExport Pipe : public Socket
virtual void OnNotify() = 0;
};
-extern uint32_t TotalRead;
-extern uint32_t TotalWritten;
-extern SocketIO normalSocketIO;
+extern CoreExport uint32_t TotalRead;
+extern CoreExport uint32_t TotalWritten;
+extern CoreExport SocketIO normalSocketIO;
#endif // SOCKET_H