Skip to content

Commit

Permalink
Fix MSVC build
Browse files Browse the repository at this point in the history
Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
  • Loading branch information
sustrik committed Jul 3, 2011
1 parent da26134 commit c687c7e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
12 changes: 8 additions & 4 deletions builds/msvc/libzmq/libzmq.vcproj
Expand Up @@ -410,6 +410,10 @@
RelativePath="..\..\..\src\session.cpp"
>
</File>
<File
RelativePath="..\..\..\src\signaler.cpp"
>
</File>
<File
RelativePath="..\..\..\src\socket_base.cpp"
>
Expand Down Expand Up @@ -568,10 +572,6 @@
RelativePath="..\..\..\src\i_engine.hpp"
>
</File>
<File
RelativePath="..\..\..\src\i_inout.hpp"
>
</File>
<File
RelativePath="..\..\..\src\i_poll_events.hpp"
>
Expand Down Expand Up @@ -712,6 +712,10 @@
RelativePath="..\..\..\src\session.hpp"
>
</File>
<File
RelativePath="..\..\..\src\signaler.hpp"
>
</File>
<File
RelativePath="..\..\..\src\socket_base.hpp"
>
Expand Down
6 changes: 3 additions & 3 deletions src/signaler.cpp
Expand Up @@ -120,7 +120,7 @@ void zmq::signaler_t::send ()
{
#if defined ZMQ_HAVE_WINDOWS
unsigned char dummy = 0;
int nbytes = ::send (w, &dummy, sizeof (dummy), 0);
int nbytes = ::send (w, (char*) &dummy, sizeof (dummy), 0);
wsa_assert (nbytes != SOCKET_ERROR);
zmq_assert (nbytes == sizeof (dummy));
#else
Expand Down Expand Up @@ -189,8 +189,8 @@ void zmq::signaler_t::recv ()
{
// Attempt to read a signal.
unsigned char dummy;
#if ZMQ_HAVE_WINDOWS
int nbytes = ::recv (r, &dummy, sizeof (dummy), 0);
#if defined ZMQ_HAVE_WINDOWS
int nbytes = ::recv (r, (char*) &dummy, sizeof (dummy), 0);
wsa_assert (nbytes != SOCKET_ERROR);
#else
ssize_t nbytes = ::recv (r, &dummy, sizeof (dummy), 0);
Expand Down

0 comments on commit c687c7e

Please sign in to comment.