diff options
| author | Martin Sustrik <sustrik@250bpm.com> | 2011-08-17 18:41:02 +0200 | 
|---|---|---|
| committer | Martin Sustrik <sustrik@250bpm.com> | 2011-08-17 18:41:02 +0200 | 
| commit | 3488af048f336867594330d4abd0ad6dab110ea0 (patch) | |
| tree | b3d27974002a01cacf7f6510037a4f7beda9dad6 /src/pgm_receiver.cpp | |
| parent | ed373450a28cff34757a70e2c7a102ecc40e3836 (diff) | |
Fix the PGM support on win64
On win64 the size of file descriptor is not the same as size of int.
The bug in PGM transport caused a runtime error because of this.
The problem is fixed now.
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/pgm_receiver.cpp')
| -rw-r--r-- | src/pgm_receiver.cpp | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pgm_receiver.cpp b/src/pgm_receiver.cpp index dcd002e..5c1517d 100644 --- a/src/pgm_receiver.cpp +++ b/src/pgm_receiver.cpp @@ -60,8 +60,8 @@ int zmq::pgm_receiver_t::init (bool udp_encapsulation_, const char *network_)  void zmq::pgm_receiver_t::plug (io_thread_t *io_thread_, session_t *session_)  {      //  Retrieve PGM fds and start polling. -    int socket_fd; -    int waiting_pipe_fd; +    fd_t socket_fd = retired_fd; +    fd_t waiting_pipe_fd = retired_fd;      pgm_socket.get_receiver_fds (&socket_fd, &waiting_pipe_fd);      socket_handle = add_fd (socket_fd);      pipe_handle = add_fd (waiting_pipe_fd);  | 
