summaryrefslogtreecommitdiff
path: root/lib/connect.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/connect.c')
-rw-r--r--lib/connect.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/connect.c b/lib/connect.c
index b106fa872..002535b42 100644
--- a/lib/connect.c
+++ b/lib/connect.c
@@ -726,6 +726,8 @@ void Curl_updateconninfo(struct connectdata *conn, curl_socket_t sockfd)
}
#endif
}
+#else /* !HAVE_GETSOCKNAME && !HAVE_GETPEERNAME */
+ (void)sockfd; /* unused */
#endif
/* persist connection info in session handle */