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
1eb8e2a6
Commit
1eb8e2a6
authored
Jun 02, 2015
by
ALEKSANDR MELNIKOV
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
HPUX build and gmake check issues solution (#1412)
parent
4676e655
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
1 deletion
+19
-1
socket_base.cpp
src/socket_base.cpp
+14
-0
thread.cpp
src/thread.cpp
+1
-1
test_srcfd.cpp
tests/test_srcfd.cpp
+4
-0
No files found.
src/socket_base.cpp
View file @
1eb8e2a6
...
...
@@ -1489,9 +1489,23 @@ void zmq::socket_base_t::monitor_event (int event_, int value_, const std::strin
// Send event in first frame
zmq_msg_t
msg
;
zmq_msg_init_size
(
&
msg
,
6
);
#ifdef ZMQ_HAVE_HPUX
// avoid SIGBUS
union
{
uint8_t
data
[
6
];
struct
{
uint16_t
event
;
uint32_t
value
;
}
v
;
}
u
;
u
.
v
.
event
=
event_
;
u
.
v
.
value
=
value_
;
memcpy
(
zmq_msg_data
(
&
msg
),
u
.
data
,
6
);
#else
uint8_t
*
data
=
(
uint8_t
*
)
zmq_msg_data
(
&
msg
);
*
(
uint16_t
*
)
(
data
+
0
)
=
(
uint16_t
)
event_
;
*
(
uint32_t
*
)
(
data
+
2
)
=
(
uint32_t
)
value_
;
#endif
zmq_sendmsg
(
monitor_socket
,
&
msg
,
ZMQ_SNDMORE
);
// Send address in second frame
...
...
src/thread.cpp
View file @
1eb8e2a6
...
...
@@ -104,7 +104,7 @@ void zmq::thread_t::stop ()
void
zmq
::
thread_t
::
setSchedulingParameters
(
int
priority_
,
int
schedulingPolicy_
)
{
#if !defined ZMQ_HAVE_ZOS
#if !defined ZMQ_HAVE_ZOS
&& !defined ZMQ_HAVE_HPUX
int
policy
=
0
;
struct
sched_param
param
;
...
...
tests/test_srcfd.cpp
View file @
1eb8e2a6
...
...
@@ -67,7 +67,11 @@ int main (void)
// get the remote endpoint
struct
sockaddr_storage
ss
;
#ifdef ZMQ_HAVE_HPUX
int
addrlen
=
sizeof
ss
;
#else
socklen_t
addrlen
=
sizeof
ss
;
#endif
rc
=
getpeername
(
srcFd
,
(
struct
sockaddr
*
)
&
ss
,
&
addrlen
);
assert
(
rc
==
0
);
...
...
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