Skip to content

Fix: compilation error when only IPv4 is enabled (IPv6 disabled). - #265

Closed
sqqdfny wants to merge 0 commit into
sepfy:mainfrom
sqqdfny:main
Closed

sqqdfny wants to merge 0 commit into
sepfy:mainfrom
sqqdfny:main

Conversation

@sqqdfny

@sqqdfny sqqdfny commented Jul 20, 2026

Copy link
Copy Markdown

My environment is RISC-V + FreeRTOS + LWIP. To save resources, my project enables only LWIP_IPV4. However, the current libpeer code causes compilation errors when only IPv4 is enabled. Therefore, I added a CONFIG_USE_IPV6 macro to guard all IPv6‑related variables and API calls when LWIP_IPV6 is not defined.
Additionally, I fixed several compilation warnings.

@sqqdfny sqqdfny closed this Oct 19, 2026
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