Skip to content

feat: Windows compatibility support - #259

Open
Thunder-Blaze wants to merge 3 commits into
hoytech:masterfrom
Thunder-Blaze:feat/windows-support
Open

feat: Windows compatibility support#259
Thunder-Blaze wants to merge 3 commits into
hoytech:masterfrom
Thunder-Blaze:feat/windows-support

Conversation

@Thunder-Blaze

@Thunder-Blaze Thunder-Blaze commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Description

strfry currently only builds on Unix-like systems. This PR makes it build and run on Windows by introducing polyfills, adjusting build configurations, and bypassing Linux-specific APIs.

Update

  • Build System: Adjusted Makefile to handle .exe extensions and use cross-platform perl -I flags.
  • Polyfills & Stubs: Added #ifdef _WIN32 guards around POSIX-only APIs (like rlimit, syslog, and POSIX signal handlers) and introduced a getline() polyfill in cmd_import.cpp and cmd_upload.cpp.
  • Network Initialization: Integrated WSAStartup in onAppStartup.cpp to properly initialize Winsock.
  • LMDB Mapsize: Reduced the default LMDB mapsize in strfry.conf to 10GB, as Windows enforces stricter memory mapping limits compared to Linux.

Issue

  • fixes Portability: Windows compatibility

Depends On

Testing

{834C53BF-272C-4DF4-9A26-CB44818121DF}
  • Compiled and successfully executed strfry.exe on Windows 11 (x64).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant