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
e8cbfac9
Commit
e8cbfac9
authored
Jan 23, 2013
by
Pieter Hintjens
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #503 from chazmcgarvey/define-dummy-eproto
define a dummy EPROTO for platforms that don't use it
parents
abc8907e
ba3e18f7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
12 deletions
+7
-12
err.hpp
src/err.hpp
+5
-0
ipc_listener.cpp
src/ipc_listener.cpp
+1
-6
tcp_listener.cpp
src/tcp_listener.cpp
+1
-6
No files found.
src/err.hpp
View file @
e8cbfac9
...
...
@@ -44,6 +44,11 @@
#include <netdb.h>
#endif
// EPROTO is not used by OpenBSD and maybe other platforms.
#ifndef EPROTO
#define EPROTO 0
#endif
namespace
zmq
{
const
char
*
errno_to_string
(
int
errno_
);
...
...
src/ipc_listener.cpp
View file @
e8cbfac9
...
...
@@ -195,13 +195,8 @@ zmq::fd_t zmq::ipc_listener_t::accept ()
zmq_assert
(
s
!=
retired_fd
);
fd_t
sock
=
::
accept
(
s
,
NULL
,
NULL
);
if
(
sock
==
-
1
)
{
#ifdef EPROTO
#define OR_ERRNO_EQ_EPROTO || errno == EPROTO
#else
#define OR_ERRNO_EQ_EPROTO
#endif
errno_assert
(
errno
==
EAGAIN
||
errno
==
EWOULDBLOCK
||
errno
==
EINTR
||
errno
==
ECONNABORTED
OR_ERRNO_EQ_
EPROTO
||
errno
==
EINTR
||
errno
==
ECONNABORTED
||
errno
==
EPROTO
||
errno
==
ENFILE
);
return
retired_fd
;
}
...
...
src/tcp_listener.cpp
View file @
e8cbfac9
...
...
@@ -262,13 +262,8 @@ zmq::fd_t zmq::tcp_listener_t::accept ()
win_assert
(
brc
);
#else
if
(
sock
==
-
1
)
{
#ifdef EPROTO
#define OR_ERRNO_EQ_EPROTO || errno == EPROTO
#else
#define OR_ERRNO_EQ_EPROTO
#endif
errno_assert
(
errno
==
EAGAIN
||
errno
==
EWOULDBLOCK
||
errno
==
EINTR
||
errno
==
ECONNABORTED
OR_ERRNO_EQ_
EPROTO
||
errno
==
EINTR
||
errno
==
ECONNABORTED
||
errno
==
EPROTO
||
errno
==
ENOBUFS
||
errno
==
ENOMEM
||
errno
==
EMFILE
||
errno
==
ENFILE
);
return
retired_fd
;
...
...
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