From 36dc50b7e39e1c314cef24192087068e3eb98e33 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 12 Feb 2026 19:43:43 +0100 Subject: [PATCH] smb: include arpa/inet.h for NonStop Reported-by: Randall S. Becker URL: https://curl.se/mail/lib-2026-02/0010.html Closes #20579 --- lib/smb.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/smb.c b/lib/smb.c index 0ddb167e61..09d09a3a99 100644 --- a/lib/smb.c +++ b/lib/smb.c @@ -27,6 +27,10 @@ #if !defined(CURL_DISABLE_SMB) && defined(USE_CURL_NTLM_CORE) +#ifdef HAVE_ARPA_INET_H +#include /* for htons() */ +#endif + #include "smb.h" #include "url.h" #include "sendf.h"