Skip to content

Commit

Permalink
Enable HAVE_GETSOCKNAME for bundled build (#350)
Browse files Browse the repository at this point in the history
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`.
  • Loading branch information
sagebind authored Aug 6, 2020
1 parent c7d0429 commit 8592cfb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions curl-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,7 @@ fn main() {
.file("curl/lib/wildcard.c")
.define("HAVE_GETADDRINFO", None)
.define("HAVE_GETPEERNAME", None)
.define("HAVE_GETSOCKNAME", None)
.warnings(false);

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

0 comments on commit 8592cfb

Please sign in to comment.