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
180c2eae
Commit
180c2eae
authored
Aug 02, 2016
by
Kenton Varda
Committed by
GitHub
Aug 02, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #348 from vlovich/fix-android-build
Add missing include when building on Linux
parents
8a2dcdd0
cbacb180
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
3 deletions
+11
-3
CMakeLists.txt
c++/CMakeLists.txt
+5
-1
CMakeLists.txt
c++/src/kj/CMakeLists.txt
+1
-1
async-io.c++
c++/src/kj/async-io.c++
+1
-1
miniposix.h
c++/src/kj/miniposix.h
+4
-0
No files found.
c++/CMakeLists.txt
View file @
180c2eae
...
...
@@ -63,7 +63,11 @@ else()
#
# We have to use -std=gnu++0x isntead of -std=c++11 because otherwise we lose
# GNU extensions that we need.
add_compile_options
(
-std=gnu++0x -Wall -Wextra -Wno-strict-aliasing -Wno-sign-compare -Wno-unused-parameter -pthread
)
add_compile_options
(
-std=gnu++0x -Wall -Wextra -Wno-strict-aliasing -Wno-sign-compare -Wno-unused-parameter
)
if
(
NOT ANDROID
)
add_compile_options
(
-pthread
)
endif
()
endif
()
# Source =======================================================================
...
...
c++/src/kj/CMakeLists.txt
View file @
180c2eae
...
...
@@ -58,7 +58,7 @@ set(kj-std_headers
)
add_library
(
kj
${
kj_sources
}
)
add_library
(
CapnProto::kj ALIAS kj
)
if
(
UNIX
)
if
(
UNIX
AND NOT ANDROID
)
target_link_libraries
(
kj PUBLIC pthread
)
endif
()
#make sure the lite flag propagates to all users (internal + external) of this library
...
...
c++/src/kj/async-io.c++
View file @
180c2eae
...
...
@@ -1229,7 +1229,7 @@ public:
// OK, we know the cmsghdr is valid, at least.
// Find the start of the message payload.
const
byte
*
begin
=
CMSG_DATA
(
cmsg
);
const
byte
*
begin
=
(
const
byte
*
)
CMSG_DATA
(
cmsg
);
// Cap the message length to the available space.
const
byte
*
end
=
pos
+
kj
::
min
(
available
,
cmsg
->
cmsg_len
);
...
...
c++/src/kj/miniposix.h
View file @
180c2eae
...
...
@@ -44,6 +44,10 @@
#include <sys/types.h>
#endif
#if !_WIN32
#include <sys/uio.h>
#endif
namespace
kj
{
namespace
miniposix
{
...
...
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