Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
39563d70
Commit
39563d70
authored
Feb 06, 2016
by
Pieter Hintjens
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1775 from CommanderBubble/patch-2
updates for bumped _WIN32_WINNT version with mingw builds
parents
a9666d7f
7270d4de
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
35 additions
and
14 deletions
+35
-14
dish.cpp
src/dish.cpp
+6
-0
err.cpp
src/err.cpp
+0
-1
err.hpp
src/err.hpp
+5
-4
select.cpp
src/select.cpp
+1
-1
windows.hpp
src/windows.hpp
+2
-2
test_heartbeats.cpp
tests/test_heartbeats.cpp
+4
-0
test_security_curve.cpp
tests/test_security_curve.cpp
+1
-1
test_security_null.cpp
tests/test_security_null.cpp
+1
-1
test_security_plain.cpp
tests/test_security_plain.cpp
+1
-1
test_stream_exceeds_buffer.cpp
tests/test_stream_exceeds_buffer.cpp
+12
-2
test_timers.cpp
tests/test_timers.cpp
+2
-1
No files found.
src/dish.cpp
View file @
39563d70
...
...
@@ -29,6 +29,12 @@
#include <string.h>
#include "platform.hpp"
#ifdef ZMQ_HAVE_WINDOWS
#include "windows.hpp"
#endif
#include "../include/zmq.h"
#include "macros.hpp"
#include "dish.hpp"
...
...
src/err.cpp
View file @
39563d70
...
...
@@ -28,7 +28,6 @@
*/
#include "err.hpp"
#include "platform.hpp"
const
char
*
zmq
::
errno_to_string
(
int
errno_
)
{
...
...
src/err.hpp
View file @
39563d70
...
...
@@ -41,10 +41,6 @@
#include <stdio.h>
#include "platform.hpp"
#include "likely.hpp"
// 0MQ-specific error codes are defined in zmq.h
#include "../include/zmq.h"
#ifdef ZMQ_HAVE_WINDOWS
#include "windows.hpp"
...
...
@@ -52,6 +48,11 @@
#include <netdb.h>
#endif
#include "likely.hpp"
// 0MQ-specific error codes are defined in zmq.h
#include "../include/zmq.h"
// EPROTO is not used by OpenBSD and maybe other platforms.
#ifndef EPROTO
#define EPROTO 0
...
...
src/select.cpp
View file @
39563d70
...
...
@@ -434,7 +434,7 @@ bool zmq::select_t::is_retired_fd (const fd_entry_t &entry)
#if defined ZMQ_HAVE_WINDOWS
u_short
zmq
::
select_t
::
get_fd_family
(
fd_t
fd_
)
{
sockaddr
addr
{
0
};
sockaddr
addr
=
{
0
};
int
addr_size
=
sizeof
addr
;
int
rc
=
getsockname
(
fd_
,
&
addr
,
&
addr_size
);
...
...
src/windows.hpp
View file @
39563d70
...
...
@@ -44,10 +44,10 @@
#ifdef __MINGW32__
// Require Windows XP or higher with MinGW for getaddrinfo().
#if(_WIN32_WINNT >= 0x0
501
)
#if(_WIN32_WINNT >= 0x0
600
)
#else
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0
501
#define _WIN32_WINNT 0x0
600
#endif
#endif
...
...
tests/test_heartbeats.cpp
View file @
39563d70
...
...
@@ -185,7 +185,11 @@ test_heartbeat_timeout (void)
ip4addr
.
sin_family
=
AF_INET
;
ip4addr
.
sin_port
=
htons
(
5556
);
#if (ZMQ_HAVE_WINDOWS and _WIN32_WINNT < 0x0600)
ip4addr
.
sin_addr
.
s_addr
=
inet_addr
(
"127.0.0.1"
);
#else
inet_pton
(
AF_INET
,
"127.0.0.1"
,
&
ip4addr
.
sin_addr
);
#endif
s
=
socket
(
AF_INET
,
SOCK_STREAM
,
IPPROTO_TCP
);
rc
=
connect
(
s
,
(
struct
sockaddr
*
)
&
ip4addr
,
sizeof
ip4addr
);
...
...
tests/test_security_curve.cpp
View file @
39563d70
...
...
@@ -245,7 +245,7 @@ int main (void)
ip4addr
.
sin_family
=
AF_INET
;
ip4addr
.
sin_port
=
htons
(
9998
);
#if (_WIN32_WINNT < 0x0600)
#if (
ZMQ_HAVE_WINDOWS and
_WIN32_WINNT < 0x0600)
ip4addr
.
sin_addr
.
s_addr
=
inet_addr
(
"127.0.0.1"
);
#else
inet_pton
(
AF_INET
,
"127.0.0.1"
,
&
ip4addr
.
sin_addr
);
...
...
tests/test_security_null.cpp
View file @
39563d70
...
...
@@ -158,7 +158,7 @@ int main (void)
ip4addr
.
sin_family
=
AF_INET
;
ip4addr
.
sin_port
=
htons
(
9003
);
#if (_WIN32_WINNT < 0x0600)
#if (
ZMQ_HAVE_WINDOWS and
_WIN32_WINNT < 0x0600)
ip4addr
.
sin_addr
.
s_addr
=
inet_addr
(
"127.0.0.1"
);
#else
inet_pton
(
AF_INET
,
"127.0.0.1"
,
&
ip4addr
.
sin_addr
);
...
...
tests/test_security_plain.cpp
View file @
39563d70
...
...
@@ -164,7 +164,7 @@ int main (void)
ip4addr
.
sin_family
=
AF_INET
;
ip4addr
.
sin_port
=
htons
(
9998
);
#if (_WIN32_WINNT < 0x0600)
#if (
ZMQ_HAVE_WINDOWS and
_WIN32_WINNT < 0x0600)
ip4addr
.
sin_addr
.
s_addr
=
inet_addr
(
"127.0.0.1"
);
#else
inet_pton
(
AF_INET
,
"127.0.0.1"
,
&
ip4addr
.
sin_addr
);
...
...
tests/test_stream_exceeds_buffer.cpp
View file @
39563d70
...
...
@@ -2,8 +2,18 @@
#include <string.h>
#include <stdio.h>
#include <netinet/in.h>
#include <unistd.h>
#include "testutil.hpp"
#if defined (ZMQ_HAVE_WINDOWS)
# include <winsock2.h>
# include <ws2tcpip.h>
# include <stdexcept>
# define close closesocket
#else
# include <sys/socket.h>
# include <netinet/in.h>
# include <arpa/inet.h>
# include <unistd.h>
#endif
#include <zmq.h>
...
...
tests/test_timers.cpp
View file @
39563d70
...
...
@@ -28,7 +28,6 @@
*/
#include "macros.hpp"
#include "testutil.hpp"
#if defined ZMQ_HAVE_WINDOWS
#include "windows.hpp"
...
...
@@ -36,6 +35,8 @@
#include <unistd.h>
#endif
#include "testutil.hpp"
void
sleep_
(
long
timeout_
)
{
#if defined ZMQ_HAVE_WINDOWS
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment