summaryrefslogtreecommitdiff
path: root/src/pgm_socket.hpp
diff options
context:
space:
mode:
authormalosek <malosek@fastmq.com>2009-10-06 12:57:24 +0200
committermalosek <malosek@fastmq.com>2009-10-06 12:57:24 +0200
commit7afc61ae7c4859fa1a6273e1964d378c00142746 (patch)
tree4ca974a1c1a4f0aa416f7e5dfc30851e6ca5387a /src/pgm_socket.hpp
parentac83175ef0f0084f281a416785679f8b56f551b9 (diff)
0MQ compilable on winXP mingw with --with-pgm2 option
Diffstat (limited to 'src/pgm_socket.hpp')
-rw-r--r--src/pgm_socket.hpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/pgm_socket.hpp b/src/pgm_socket.hpp
index c9d03bd..9b9ae45 100644
--- a/src/pgm_socket.hpp
+++ b/src/pgm_socket.hpp
@@ -24,13 +24,12 @@
#if defined ZMQ_HAVE_OPENPGM
-#ifdef ZMQ_HAVE_LINUX
-#include <glib.h>
-#include <pgm/pgm.h>
-#else
-#include <Winsock2.h>
+#ifdef ZMQ_HAVE_WINDOWS
+#include "windows.hpp"
#endif
+#include <pgm/pgm.h>
+
#include "stdint.hpp"
#include "options.hpp"
@@ -40,8 +39,6 @@ namespace zmq
class pgm_socket_t
{
-#ifdef ZMQ_HAVE_LINUX
-
public:
// If receiver_ is true PGM transport is not generating SPM packets.
// interface format: iface;mcast_group:port for raw PGM socket
@@ -148,9 +145,9 @@ namespace zmq
// Receiver transport uses 2 fd.
enum {pgm_receiver_fd_count = 2};
-#endif
};
}
#endif
#endif
+