From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by passt.top (Postfix, from userid 1000) id 359B05A061A; Wed, 30 Oct 2024 21:50:10 +0100 (CET) From: Stefano Brivio To: passt-dev@passt.top Subject: [PATCH] tcp: Fix build against musl, __sum16 comes from linux/types.h Date: Wed, 30 Oct 2024 21:50:10 +0100 Message-ID: <20241030205010.325338-1-sbrivio@redhat.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: K5QSJRJECW5SLBE5F4JAILUNYJZGB4O2 X-Message-ID-Hash: K5QSJRJECW5SLBE5F4JAILUNYJZGB4O2 X-MailFrom: sbrivio@passt.top X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Laurent Vivier , David Gibson , omni X-Mailman-Version: 3.3.8 Precedence: list List-Id: Development discussion and patches for passt Archived-At: Archived-At: List-Archive: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: ...so we need to include that header explicitly. For some reason, it works without it when building against glibc. Reported-by: omni Fixes: 3d484aa37090 ("tcp: Update TCP checksum using an iovec array") Signed-off-by: Stefano Brivio --- tcp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tcp.c b/tcp.c index 4e0a17e..429634a 100644 --- a/tcp.c +++ b/tcp.c @@ -287,6 +287,8 @@ #include #include +#include /* For __sum16 */ + #include "checksum.h" #include "util.h" #include "iov.h" -- 2.43.0