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
4d4674e0
Commit
4d4674e0
authored
Jun 05, 2012
by
Ian Barber
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #360 from vortechs2000/fix_hpux
Fix build on HPUX 11iv3
parents
f8b79f88
97c48ccd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
ipc_listener.cpp
src/ipc_listener.cpp
+4
-0
tcp_listener.cpp
src/tcp_listener.cpp
+8
-0
No files found.
src/ipc_listener.cpp
View file @
4d4674e0
...
...
@@ -103,7 +103,11 @@ void zmq::ipc_listener_t::in_event ()
int
zmq
::
ipc_listener_t
::
get_address
(
std
::
string
&
addr_
)
{
struct
sockaddr_storage
ss
;
#ifdef ZMQ_HAVE_HPUX
int
sl
=
sizeof
(
ss
);
#else
socklen_t
sl
=
sizeof
(
ss
);
#endif
int
rc
=
getsockname
(
s
,
(
sockaddr
*
)
&
ss
,
&
sl
);
if
(
rc
!=
0
)
{
addr_
.
clear
();
...
...
src/tcp_listener.cpp
View file @
4d4674e0
...
...
@@ -133,7 +133,11 @@ int zmq::tcp_listener_t::get_address (std::string &addr_)
{
// Get the details of the TCP socket
struct
sockaddr_storage
ss
;
#ifdef ZMQ_HAVE_HPUX
int
sl
=
sizeof
(
ss
);
#else
socklen_t
sl
=
sizeof
(
ss
);
#endif
int
rc
=
getsockname
(
s
,
(
struct
sockaddr
*
)
&
ss
,
&
sl
);
if
(
rc
!=
0
)
{
...
...
@@ -233,7 +237,11 @@ zmq::fd_t zmq::tcp_listener_t::accept ()
zmq_assert
(
s
!=
retired_fd
);
struct
sockaddr_storage
ss
=
{
0
};
#ifdef ZMQ_HAVE_HPUX
int
ss_len
=
sizeof
(
ss
);
#else
socklen_t
ss_len
=
sizeof
(
ss
);
#endif
fd_t
sock
=
::
accept
(
s
,
(
struct
sockaddr
*
)
&
ss
,
&
ss_len
);
#ifdef 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