From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by passt.top (Postfix, from userid 1000) id 76C8E5A0276; Wed, 29 Nov 2023 14:46:10 +0100 (CET) From: Stefano Brivio To: passt-dev@passt.top Subject: [PATCH 4/4] port_fwd, util: Include additional headers to fix build with musl Date: Wed, 29 Nov 2023 14:46:10 +0100 Message-Id: <20231129134610.3796809-5-sbrivio@redhat.com> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20231129134610.3796809-1-sbrivio@redhat.com> References: <20231129134610.3796809-1-sbrivio@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Message-ID-Hash: 6KV7Q5OQAYCSFG7JTDVW3IZTWIOWP7MR X-Message-ID-Hash: 6KV7Q5OQAYCSFG7JTDVW3IZTWIOWP7MR 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: lemmi@nerd2nerd.org 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: lseek() is declared in unistd.h, and stdio.h provides sscanf(). Include these two headers in port_fwd.c. SIGCHLD, even if used exclusively for clone(), is defined in signal.h: add the include to util.h, as NS_CALL needs it. Reported-by: lemmi Link: https://github.com/void-linux/void-packages/actions/runs/6999782606/job/19039526604#step:7:57 Signed-off-by: Stefano Brivio --- port_fwd.c | 2 ++ util.h | 1 + 2 files changed, 3 insertions(+) diff --git a/port_fwd.c b/port_fwd.c index 7943a30..6f6c836 100644 --- a/port_fwd.c +++ b/port_fwd.c @@ -17,6 +17,8 @@ #include #include #include +#include +#include #include "util.h" #include "port_fwd.h" diff --git a/util.h b/util.h index 1f02588..86f1a7e 100644 --- a/util.h +++ b/util.h @@ -10,6 +10,7 @@ #include #include #include +#include #include "log.h" -- 2.39.2