Skip to content

config-win32.h: do not use winsock2 inet_ntop()/inet_pton()#18045

Closed
vszakats wants to merge 4 commits intocurl:masterfrom
vszakats:winet
Closed

config-win32.h: do not use winsock2 inet_ntop()/inet_pton()#18045
vszakats wants to merge 4 commits intocurl:masterfrom
vszakats:winet

Conversation

@vszakats
Copy link
Copy Markdown
Member

@vszakats vszakats commented Jul 27, 2025

Syncing winbuild and VS Project File builds with the same fix applied
to cmake and autotools builds earlier.

Also fixes these warnings seen in the VisualStudioSolution (VS2013) job
on AppVeyor CI:

lib\hostip.c(148): warning C4090: 'function' : different 'const' qualifiers
lib\hostip.c(155): warning C4090: 'function' : different 'const' qualifiers

Ref: https://ci.appveyor.com/project/curlorg/curl/builds/52470650/job/gslnjrdxnd8b9mtv#L180

Went unnoticed because warnings are not promoted to error in these builds.
winbuild CI jobs did not hit this warning for some reason.

Follow-up to 8537a5b #16577

Syncing winbuild and VS Project File builds with this fix applied
to the standard builds earlier.

Also fixes these warnings seen in the VisualStudioSolution (VS2013) job
on AppVeyor CI:
```
lib\hostip.c(148): warning C4090: 'function' : different 'const' qualifiers
lib\hostip.c(155): warning C4090: 'function' : different 'const' qualifiers
```
Ref: https://ci.appveyor.com/project/curlorg/curl/builds/52470650/job/gslnjrdxnd8b9mtv#L180

Follow-up to 8537a5b curl#16577
@github-actions github-actions bot added the Windows Windows-specific label Jul 27, 2025
@vszakats vszakats added the build label Jul 27, 2025
@vszakats vszakats changed the title config-win32.h: do not use system inet_pton, inet_ntop config-win32.h: do not use winsock2 inet_ntop()/inet_pton() Jul 27, 2025
@vszakats vszakats marked this pull request as draft July 27, 2025 22:51
@vszakats vszakats closed this in 36af5cc Jul 27, 2025
@vszakats vszakats deleted the winet branch July 27, 2025 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build Windows Windows-specific

Development

Successfully merging this pull request may close these issues.

1 participant