Menu

#415 WIN32: MSVC: fix build of libzmbv

v3.x
closed-accepted
gpz
None
bugfix
2025-11-30
2025-11-29
No

MSVC is unable to build libzmbv.
It happens that:

  • It cannot use a macro like TDEFL_READ_UNALIGNED_WORD().
  • unistd.h is unavailable.
    Attached patch fixes the issue.
1 Attachments

Discussion

  • gpz

    gpz - 2025-11-29

    this fix should also go upstream (we don't modify files in src/lib/)

     
  • gpz

    gpz - 2025-11-30
     
  • gpz

    gpz - 2025-11-30

    r45876 contains all your libzmbv fixes. please test if they work for you like this

     
  • gpz

    gpz - 2025-11-30
    • status: open --> closed-accepted
    • assigned_to: gpz
     
  • Carlo Bramini

    Carlo Bramini - 2025-11-30

    Thank you, I'm also going to share my changes to upstream.
    EDIT: It looks like somebody did it already, thanks!

     

    Last edit: Carlo Bramini 2025-11-30

Log in to post a comment.

MongoDB Logo MongoDB