From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id DFF8515806E for ; Tue, 16 May 2023 09:28:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 25600E0891; Tue, 16 May 2023 09:28:54 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 02E6AE0891 for ; Tue, 16 May 2023 09:28:53 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D114E33BE61 for ; Tue, 16 May 2023 09:28:52 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 13C6AA34 for ; Tue, 16 May 2023 09:28:51 +0000 (UTC) From: "Florian Schmaus" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Florian Schmaus" Message-ID: <1684229317.b4c1a86ca8bc0f0885c8ae5b13a3fd201b24d9f9.flow@gentoo> Subject: [gentoo-commits] proj/xen-gentoo-patches:main commit in: / X-VCS-Repository: proj/xen-gentoo-patches X-VCS-Files: xen-tools-m4-ptyfuncs.m4-tools-configure-add-linux-headers-for.patch X-VCS-Directories: / X-VCS-Committer: flow X-VCS-Committer-Name: Florian Schmaus X-VCS-Revision: b4c1a86ca8bc0f0885c8ae5b13a3fd201b24d9f9 X-VCS-Branch: main Date: Tue, 16 May 2023 09:28:51 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 9e399701-16f9-41e5-bfd8-63658f5fdf64 X-Archives-Hash: 2f83481d17ca8b3a3a445eb1dae5654c commit: b4c1a86ca8bc0f0885c8ae5b13a3fd201b24d9f9 Author: Florian Schmaus gentoo org> AuthorDate: Tue May 16 09:28:31 2023 +0000 Commit: Florian Schmaus gentoo org> CommitDate: Tue May 16 09:28:37 2023 +0000 URL: https://gitweb.gentoo.org/proj/xen-gentoo-patches.git/commit/?id=b4c1a86c add xen-tools-m4-ptyfuncs.m4-tools-configure-add-linux-headers-for.patch Signed-off-by: Florian Schmaus gentoo.org> ....m4-tools-configure-add-linux-headers-for.patch | 48 ++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/xen-tools-m4-ptyfuncs.m4-tools-configure-add-linux-headers-for.patch b/xen-tools-m4-ptyfuncs.m4-tools-configure-add-linux-headers-for.patch new file mode 100644 index 0000000..170ec2c --- /dev/null +++ b/xen-tools-m4-ptyfuncs.m4-tools-configure-add-linux-headers-for.patch @@ -0,0 +1,48 @@ +From 873d4759aa7b0581bf34e8a7ebfcbeca789ed6e1 Mon Sep 17 00:00:00 2001 +From: Florian Schmaus +Date: Tue, 16 May 2023 09:56:48 +0200 +Subject: [PATCH] m4/ptyfuncs.m4 tools/configure: add linux headers for pty + functions + +To avoid implicit function declarations, which will cause an error on +modern compilers. See https://wiki.gentoo.org/wiki/Modern_C_porting + +Downstream Gentoo bug: https://bugs.gentoo.org/904449 + +Signed-off-by: Florian Schmaus +--- + m4/ptyfuncs.m4 | 3 +++ + tools/configure | 3 +++ + 2 files changed, 6 insertions(+) + +diff --git a/m4/ptyfuncs.m4 b/m4/ptyfuncs.m4 +index 3e37b5a23c8b..d1a2208398e3 100644 +--- a/m4/ptyfuncs.m4 ++++ b/m4/ptyfuncs.m4 +@@ -19,6 +19,9 @@ AC_DEFUN([AX_CHECK_PTYFUNCS], [ + AC_LINK_IFELSE([AC_LANG_SOURCE([ + #ifdef INCLUDE_LIBUTIL_H + #include INCLUDE_LIBUTIL_H ++#else ++#include ++#include + #endif + int main(void) { + openpty(0,0,0,0,0); +diff --git a/tools/configure b/tools/configure +index 5df30df9b35c..01f57b20c318 100755 +--- a/tools/configure ++++ b/tools/configure +@@ -9002,6 +9002,9 @@ See \`config.log' for more details" "$LINENO" 5; } + + #ifdef INCLUDE_LIBUTIL_H + #include INCLUDE_LIBUTIL_H ++#else ++#include ++#include + #endif + int main(void) { + openpty(0,0,0,0,0); +-- +2.39.3 +