From: Stefano Brivio <sbrivio@redhat.com>
To: passt-dev@passt.top
Cc: David Gibson <david@gibson.dropbear.id.au>, lemmi@nerd2nerd.org
Subject: [PATCH v2 1/2] udp_flow: Add missing unistd.h include for close()
Date: Tue, 20 Aug 2024 23:58:52 +0200 [thread overview]
Message-ID: <20240820215853.2166370-2-sbrivio@redhat.com> (raw)
In-Reply-To: <20240820215853.2166370-1-sbrivio@redhat.com>
For some reason, this is reported only with musl, and older glibc
versions (2.31, at least).
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
---
udp_flow.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/udp_flow.c b/udp_flow.c
index b1133c0..1ff59a9 100644
--- a/udp_flow.c
+++ b/udp_flow.c
@@ -8,6 +8,7 @@
#include <errno.h>
#include <fcntl.h>
#include <sys/uio.h>
+#include <unistd.h>
#include "util.h"
#include "passt.h"
--
@@ -8,6 +8,7 @@
#include <errno.h>
#include <fcntl.h>
#include <sys/uio.h>
+#include <unistd.h>
#include "util.h"
#include "passt.h"
--
2.43.0
next prev parent reply other threads:[~2024-08-20 21:58 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-20 21:58 [PATCH v2 0/2] Build fixes for musl, glibc < 2.34 Stefano Brivio
2024-08-20 21:58 ` Stefano Brivio [this message]
2024-08-20 21:58 ` [PATCH v2 2/2] util: Provide own version of close_range(), and no-op fallback Stefano Brivio
2024-08-21 1:38 ` David Gibson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240820215853.2166370-2-sbrivio@redhat.com \
--to=sbrivio@redhat.com \
--cc=david@gibson.dropbear.id.au \
--cc=lemmi@nerd2nerd.org \
--cc=passt-dev@passt.top \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://passt.top/passt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for IMAP folder(s).