Skip to content

feat(build): add conditional compilation for SO_REUSEPORT#322

Open
ArtDu wants to merge 1 commit intobersler:masterfrom
ArtDu:so_reuseport_for_mac
Open

feat(build): add conditional compilation for SO_REUSEPORT#322
ArtDu wants to merge 1 commit intobersler:masterfrom
ArtDu:so_reuseport_for_mac

Conversation

@ArtDu
Copy link
Copy Markdown

@ArtDu ArtDu commented Apr 9, 2026

Summary

Add conditional compilation for the SO_REUSEPORT socket option, which is not supported on all platforms (e.g., macos).

Changes

  • Wrap SO_REUSEPORT usage with #ifdef checks in StreamNetwork.cpp
  • Allows compilation on systems without this socket option

Motivation

This change enables OpenLogReplicator to build and run on macos and other systems that do not implement SO_REUSEPORT.

Testing

  • Compiled on Linux with SO_REUSEPORT support
  • Compiled on Mac without SO_REUSEPORT support

Conditional compilation for the `SO_REUSEPORT`
parameter has been added, as it may not be
supported by some systems.
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.

2 participants