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
99c52770
Commit
99c52770
authored
Oct 05, 2017
by
Luca Boccassi
Committed by
GitHub
Oct 05, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2766 from hxw/master
add __FreeBSD__ to ifdefs
parents
44f96a36
997825bd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
stream_engine.cpp
src/stream_engine.cpp
+1
-1
thread.cpp
src/thread.cpp
+1
-1
No files found.
src/stream_engine.cpp
View file @
99c52770
...
@@ -149,7 +149,7 @@ zmq::stream_engine_t::~stream_engine_t ()
...
@@ -149,7 +149,7 @@ zmq::stream_engine_t::~stream_engine_t ()
wsa_assert
(
rc
!=
SOCKET_ERROR
);
wsa_assert
(
rc
!=
SOCKET_ERROR
);
#else
#else
int
rc
=
close
(
s
);
int
rc
=
close
(
s
);
#if
def __FreeBSD_kernel__
#if
defined(__FreeBSD_kernel__) || defined (__FreeBSD__)
// FreeBSD may return ECONNRESET on close() under load but this is not
// FreeBSD may return ECONNRESET on close() under load but this is not
// an error.
// an error.
if
(
rc
==
-
1
&&
errno
==
ECONNRESET
)
if
(
rc
==
-
1
&&
errno
==
ECONNRESET
)
...
...
src/thread.cpp
View file @
99c52770
...
@@ -152,7 +152,7 @@ void zmq::thread_t::setSchedulingParameters(int priority_, int schedulingPolicy_
...
@@ -152,7 +152,7 @@ void zmq::thread_t::setSchedulingParameters(int priority_, int schedulingPolicy_
rc
=
pthread_setschedparam
(
descriptor
,
policy
,
&
param
);
rc
=
pthread_setschedparam
(
descriptor
,
policy
,
&
param
);
#if
def __FreeBSD_kernel__
#if
defined(__FreeBSD_kernel__) || defined (__FreeBSD__)
// If this feature is unavailable at run-time, don't abort.
// If this feature is unavailable at run-time, don't abort.
if
(
rc
==
ENOSYS
)
return
;
if
(
rc
==
ENOSYS
)
return
;
#endif
#endif
...
...
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