public inbox for passt-dev@passt.top
 help / color / mirror / code / Atom feed
From: Stefano Brivio <sbrivio@redhat.com>
To: passt-dev@passt.top
Cc: lemmi@nerd2nerd.org
Subject: [PATCH 1/2] udp_flow: Add missing unistd.h include for close()
Date: Tue, 20 Aug 2024 01:15:04 +0200	[thread overview]
Message-ID: <20240819231505.1481940-2-sbrivio@redhat.com> (raw)
In-Reply-To: <20240819231505.1481940-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>
---
 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


  reply	other threads:[~2024-08-19 23:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-08-19 23:15 [PATCH 0/2] Build fixes for musl, glibc < 2.34 Stefano Brivio
2024-08-19 23:15 ` Stefano Brivio [this message]
2024-08-20  0:47   ` [PATCH 1/2] udp_flow: Add missing unistd.h include for close() David Gibson
2024-08-19 23:15 ` [PATCH 2/2] util: Provide own version of close_range(), and no-op fallback Stefano Brivio
2024-08-20  0:48   ` 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=20240819231505.1481940-2-sbrivio@redhat.com \
    --to=sbrivio@redhat.com \
    --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).