]> git.tdb.fi Git - libs/net.git/blobdiff - source/net/socket_private.h
Use the correct #ifdef for Windows
[libs/net.git] / source / net / socket_private.h
index 83cc36947ac561a023f98c4b84f4e90be5cb30ec..995ead0f3951b88bff1462d1cea515b97de10278 100644 (file)
@@ -7,9 +7,13 @@
 namespace Msp {
 namespace Net {
 
+#ifdef _WIN32
+typedef int socklen_t;
+#endif
+
 struct Socket::Private
 {
-#ifdef WIN32
+#ifdef _WIN32
        SOCKET handle;
 #else
        int handle;
@@ -18,6 +22,9 @@ struct Socket::Private
        /* On POSIX platforms this is the same as the handle.  This might seem
        strange but it allows the same syntax on both POSIX and Windows. */
        IO::Handle event;
+
+       int set_option(int, int, const void *, socklen_t);
+       int get_option(int, int, void *, socklen_t *);
 };
 
 } // namespace Net