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
8a0d5f18
Unverified
Commit
8a0d5f18
authored
Aug 22, 2018
by
Kenton Varda
Committed by
GitHub
Aug 22, 2018
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #728 from bazurbat/master
Two fixes for build failure on Android (resubmit)
parents
cad2304f
8d5b6365
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
filesystem-disk-unix.c++
c++/src/kj/filesystem-disk-unix.c++
+5
-0
table.c++
c++/src/kj/table.c++
+2
-2
No files found.
c++/src/kj/filesystem-disk-unix.c++
View file @
8a0d5f18
...
...
@@ -72,6 +72,11 @@ namespace {
#undef SEEK_HOLE
#endif
#if __BIONIC__
// No no DTTOIF function
#undef DT_UNKNOWN
#endif
static
void
setCloexec
(
int
fd
)
KJ_UNUSED
;
static
void
setCloexec
(
int
fd
)
{
// Set the O_CLOEXEC flag on the given fd.
...
...
c++/src/kj/table.c++
View file @
8a0d5f18
...
...
@@ -288,8 +288,8 @@ void BTreeImpl::growTree(uint minCapacity) {
// aligned_alloc() function. Unfortunately, many platforms don't implement it. Luckily, there
// are usually alternatives.
#if __APPLE__
// OSX
lacks aligned_alloc(), but has
posix_memalign(). Fine.
#if __APPLE__
|| __BIONIC__
// OSX
and Android lack aligned_alloc(), but have
posix_memalign(). Fine.
void
*
allocPtr
;
int
error
=
posix_memalign
(
&
allocPtr
,
sizeof
(
BTreeImpl
::
NodeUnion
),
newCapacity
*
sizeof
(
BTreeImpl
::
NodeUnion
));
...
...
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