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
cbaf1097
Commit
cbaf1097
authored
Mar 19, 2010
by
Martin Sustrik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes for building with Sun CC
parent
ae35a164
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
dispatcher.cpp
src/dispatcher.cpp
+2
-1
tcp_listener.cpp
src/tcp_listener.cpp
+3
-3
No files found.
src/dispatcher.cpp
View file @
cbaf1097
...
...
@@ -264,7 +264,8 @@ int zmq::dispatcher_t::register_endpoint (const char *addr_,
{
endpoints_sync
.
lock
();
bool
inserted
=
endpoints
.
insert
(
std
::
make_pair
(
addr_
,
socket_
)).
second
;
bool
inserted
=
endpoints
.
insert
(
std
::
make_pair
(
std
::
string
(
addr_
),
socket_
)).
second
;
if
(
!
inserted
)
{
errno
=
EADDRINUSE
;
endpoints_sync
.
unlock
();
...
...
src/tcp_listener.cpp
View file @
cbaf1097
...
...
@@ -251,9 +251,9 @@ int zmq::tcp_listener_t::close ()
// If there's an underlying UNIX domain socket, get rid of the file it
// is associated with.
struct
sockaddr_un
*
su
n
=
(
struct
sockaddr_un
*
)
&
addr
;
if
(
AF_UNIX
==
su
n
->
sun_family
)
{
rc
=
::
unlink
(
su
n
->
sun_path
);
struct
sockaddr_un
*
su
=
(
struct
sockaddr_un
*
)
&
addr
;
if
(
AF_UNIX
==
su
->
sun_family
)
{
rc
=
::
unlink
(
su
->
sun_path
);
if
(
rc
!=
0
)
return
-
1
;
}
...
...
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