This is a first set of changes to help cdatapack compile on Windows. Second
set will include adding some way of using mman on Windows.
Details
- Reviewers
durham dsp - Group Reviewers
Restricted Project - Commits
- rFBHGXb8a935ce949b: cdatapack: add some windows portability
- make local on Linux, rt
- with some intermediary solution for mman this also builds on Windows 10, I was able to produce cdatapack_get.exe and cdatapack_dump.exe. Here's an example:
PS C:\Code\fb-hg-rpms\fb-hgext\cdatapack> .\cdatapack_get.exe 3ba0b10b8d251743a2692e042b114c1204b19d74 88dadb363234ec4fec3df85810810d6073288350 xplat/third-party/yarn/offline-mirror/smoothscroll-polyfill-0.3.5.tgz Node Delta Base Delta SHA1 Delta Length 88dadb363234ec4fec3df85810810d6073288350 0000000000000000000000000000000000000000 466e6039b51cb525d70e1a5077ef81e064678eae 26057
Diff Detail
- Repository
- rFBHGX Facebook Mercurial Extensions
- Lint
Automatic diff as part of commit; lint not applicable. - Unit
Automatic diff as part of commit; unit tests not applicable.
Event Timeline
clib/portability/inet.h | ||
---|---|---|
7 | I think it hints Windows that this .lib file is needed at link time..? | |
clib/portability/portability.h | ||
17 | Let me look into https://msdn.microsoft.com/en-us/library/2e70t5y1.aspx, potentially we can use it to achieve the same thing. |
Could you build and run the tests on linux to make sure the new packed declartion stuff passes there?
Edit: though perhaps you already did, based on the test plan
What does this line do? Does it need a comment?