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
2d44bf36
Commit
2d44bf36
authored
Feb 10, 2010
by
Martin Sustrik
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ZMQII-69: Make 0MQ build on HP-UX
parent
8c25bab3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
fd_signaler.cpp
src/fd_signaler.cpp
+2
-2
tcp_connecter.cpp
src/tcp_connecter.cpp
+5
-1
No files found.
src/fd_signaler.cpp
View file @
2d44bf36
...
@@ -249,10 +249,10 @@ void zmq::fd_signaler_t::signal (int signal_)
...
@@ -249,10 +249,10 @@ void zmq::fd_signaler_t::signal (int signal_)
uint64_t
zmq
::
fd_signaler_t
::
poll
()
uint64_t
zmq
::
fd_signaler_t
::
poll
()
{
{
// Set the reader to blocking mode.
// Set the reader to blocking mode.
int
flags
=
fcntl
(
fd
,
F_GETFL
,
0
);
int
flags
=
fcntl
(
r
,
F_GETFL
,
0
);
if
(
flags
==
-
1
)
if
(
flags
==
-
1
)
flags
=
0
;
flags
=
0
;
int
rc
=
fcntl
(
fd
,
F_SETFL
,
flags
&
~
O_NONBLOCK
);
int
rc
=
fcntl
(
r
,
F_SETFL
,
flags
&
~
O_NONBLOCK
);
errno_assert
(
rc
!=
-
1
);
errno_assert
(
rc
!=
-
1
);
// Poll for events.
// Poll for events.
...
...
src/tcp_connecter.cpp
View file @
2d44bf36
...
@@ -268,7 +268,11 @@ zmq::fd_t zmq::tcp_connecter_t::connect ()
...
@@ -268,7 +268,11 @@ zmq::fd_t zmq::tcp_connecter_t::connect ()
// Following code should handle both Berkeley-derived socket
// Following code should handle both Berkeley-derived socket
// implementations and Solaris.
// implementations and Solaris.
int
err
=
0
;
int
err
=
0
;
socklen_t
len
=
sizeof
err
;
#if defined ZMQ_HAVE_HPUX
int
len
=
sizeof
(
err
);
#else
socklen_t
len
=
sizeof
(
err
);
#endif
int
rc
=
getsockopt
(
s
,
SOL_SOCKET
,
SO_ERROR
,
(
char
*
)
&
err
,
&
len
);
int
rc
=
getsockopt
(
s
,
SOL_SOCKET
,
SO_ERROR
,
(
char
*
)
&
err
,
&
len
);
if
(
rc
==
-
1
)
if
(
rc
==
-
1
)
err
=
errno
;
err
=
errno
;
...
...
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