mirror of
https://github.com/curl/curl.git
synced 2026-07-24 04:17:18 +03:00
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:
parent
4e98f6d225
commit
2a63957204
1 changed files with 4 additions and 0 deletions
|
|
@ -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"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue