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
dbae17b2
Commit
dbae17b2
authored
Dec 03, 2017
by
Kenton Varda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Skip filesystem-disk.c++ on Windows.
Windows support will be implemented in a separate file.
parent
dd734c75
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
filesystem-disk.c++
c++/src/kj/filesystem-disk.c++
+4
-5
No files found.
c++/src/kj/filesystem-disk.c++
View file @
dbae17b2
...
@@ -19,6 +19,8 @@
...
@@ -19,6 +19,8 @@
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
// THE SOFTWARE.
// THE SOFTWARE.
#if !_WIN32
#include "filesystem.h"
#include "filesystem.h"
#include "debug.h"
#include "debug.h"
#include <sys/types.h>
#include <sys/types.h>
...
@@ -223,12 +225,7 @@ protected:
...
@@ -223,12 +225,7 @@ protected:
size_t
capacity
,
void
(
*
destroyElement
)(
void
*
))
const
{
size_t
capacity
,
void
(
*
destroyElement
)(
void
*
))
const
{
auto
range
=
getMmapRange
(
reinterpret_cast
<
uintptr_t
>
(
firstElement
),
auto
range
=
getMmapRange
(
reinterpret_cast
<
uintptr_t
>
(
firstElement
),
elementSize
*
elementCount
);
elementSize
*
elementCount
);
#if _WIN32
KJ_ASSERT
(
UnmapViewOfFile
(
reinterpret_cast
<
byte
*>
(
range
.
offset
)))
{
break
;
}
#else
KJ_SYSCALL
(
munmap
(
reinterpret_cast
<
byte
*>
(
range
.
offset
),
range
.
size
))
{
break
;
}
KJ_SYSCALL
(
munmap
(
reinterpret_cast
<
byte
*>
(
range
.
offset
),
range
.
size
))
{
break
;
}
#endif
}
}
};
};
...
@@ -1655,3 +1652,5 @@ Own<Filesystem> newDiskFilesystem() {
...
@@ -1655,3 +1652,5 @@ Own<Filesystem> newDiskFilesystem() {
}
}
}
// namespace kj
}
// namespace kj
#endif // !_WIN32
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