Skip to content

Conversation

@vszakats
Copy link
Member

@vszakats vszakats commented Nov 30, 2025

Before this patch it added Windows-specific casts. In unity builds this
also affected other source files.

setsockopt() is called without special casts in other places in
the code, and passing a non-const char ptr to a const char ptr arg also
should work.

Basic compile test with mingw-w64 confirms. In case of issues, a cast to
curl_socklen_t can be used, or do the special case in an #if branch.

Also: merge Windows-specific guards for SET_RCVTIMEO().

Follow-up to 639d052 #3155
Follow-up to 04cb15a

@vszakats vszakats added Windows Windows-specific tidy-up RTMP labels Nov 30, 2025
@vszakats vszakats changed the title rtmp: stop redefining system symbol on Windows rtmp: stop redefining setsockopt system symbol on Windows Nov 30, 2025
@vszakats vszakats closed this in fdf9937 Nov 30, 2025
@vszakats vszakats deleted the wrtmp branch November 30, 2025 21:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

1 participant