Skip to content

Commit 8592cfb

Browse files
authored
Enable HAVE_GETSOCKNAME for bundled build (#350)
Define `HAVE_GETSOCKNAME` for bundled curl-sys so that `Easy2::local_ip` and `Easy2::local_port` don't return blank values. We're already enabling `HAVE_GETPEERNAME` and your system probably has `getsockname` if it has `getpeername`.
1 parent c7d0429 commit 8592cfb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

curl-sys/build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ fn main() {
202202
.file("curl/lib/wildcard.c")
203203
.define("HAVE_GETADDRINFO", None)
204204
.define("HAVE_GETPEERNAME", None)
205+
.define("HAVE_GETSOCKNAME", None)
205206
.warnings(false);
206207

207208
if cfg!(feature = "protocol-ftp") {

0 commit comments

Comments
 (0)