Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
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
capnproto
Commits
d8958a54
Commit
d8958a54
authored
Dec 06, 2014
by
Kenton Varda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
si_addr_lsb is fairly new; only copy if defined.
parent
c50dd602
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
async-unix.c++
c++/src/kj/async-unix.c++
+2
-0
No files found.
c++/src/kj/async-unix.c++
View file @
d8958a54
...
...
@@ -395,9 +395,11 @@ static siginfo_t toRegularSiginfo(const struct signalfd_siginfo& siginfo) {
#ifdef si_trapno
result
.
si_trapno
=
siginfo
.
ssi_trapno
;
#endif
#ifdef si_addr_lsb
// ssi_addr_lsb is defined as coming immediately after ssi_addr in the kernel headers but
// apparently the userspace headers were never updated. So we do a pointer hack. :(
result
.
si_addr_lsb
=
*
reinterpret_cast
<
const
uint16_t
*>
(
&
siginfo
.
ssi_addr
+
1
);
#endif
break
;
case
SIGIO
:
...
...
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