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
5e4ec0b2
Commit
5e4ec0b2
authored
Jun 03, 2013
by
Kenton Varda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix some recent bugs.
parent
6d346575
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
Makefile.am
c++/Makefile.am
+1
-1
logging.c++
c++/src/kj/logging.c++
+5
-3
No files found.
c++/Makefile.am
View file @
5e4ec0b2
...
...
@@ -61,7 +61,7 @@ capnpc_middleman:
$(capnpc_outputs)
:
capnpc_middleman
includecapnpdir
=
$(includedir)
/capnproto
includekjdir
=
$(includedir)
/
capnproto
includekjdir
=
$(includedir)
/
kj
includekj_HEADERS
=
\
src/kj/common.h
\
...
...
c++/src/kj/logging.c++
View file @
5e4ec0b2
...
...
@@ -129,9 +129,11 @@ static String makeDescription(DescriptionStyle style, const char* code, int erro
sysErrorArray
=
strerror_r
(
errorNumber
,
buffer
,
sizeof
(
buffer
));
}
#else
// TODO(port): Other unixes should have strerror_r but it may have a different signature.
// Port for thread-safety.
sysErrorArray
=
arrayPtr
(
strerror
(
errorNumber
));
char
buffer
[
256
];
if
(
style
==
SYSCALL
)
{
strerror_r
(
errorNumber
,
buffer
,
sizeof
(
buffer
));
sysErrorArray
=
buffer
;
}
#endif
size_t
totalSize
=
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