From 9fcace6a470d651cdfc1c571594e23399e3904aa Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Tue, 1 Oct 2019 14:18:59 -0700 Subject: [PATCH] Enable HAVE_GETPEERNAME when building `curl` Looks like this enables a few optimizations internally, such as reusing connections! Let's be sure to enable this for our platforms, which should all have this, so we can get those performance optimizations with HTTP. --- curl-sys/build.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/curl-sys/build.rs b/curl-sys/build.rs index 59c23b0c09..cf28454ce8 100644 --- a/curl-sys/build.rs +++ b/curl-sys/build.rs @@ -187,6 +187,7 @@ fn main() { .file("curl/lib/warnless.c") .file("curl/lib/wildcard.c") .define("HAVE_GETADDRINFO", None) + .define("HAVE_GETPEERNAME", None) .warnings(false); if cfg!(feature = "http2") {