capsule: include arpa/inet.h for ntohs() declaration

Some platforms require inclusion of arpa/inet.h in order to use ntohs().

Follow-up to e78b1b3ecc #21153

Closes #21834
This commit is contained in:
Randall S. Becker 2026-06-01 21:18:00 +01:00 committed by Viktor Szakats
parent 4e98f6d225
commit 2a63957204
No known key found for this signature in database

View file

@ -26,6 +26,10 @@
#if !defined(CURL_DISABLE_PROXY) && !defined(CURL_DISABLE_HTTP)
#ifdef HAVE_ARPA_INET_H
#include <arpa/inet.h> /* for htons() */
#endif
#include <curl/curl.h>
#include "urldata.h"
#include "curlx/dynbuf.h"