From nobody Mon Feb 9 16:53:28 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1684233168656414.5759240160529; Tue, 16 May 2023 03:32:48 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.535080.832714 (Exim 4.92) (envelope-from ) id 1pyryP-0001px-CS; Tue, 16 May 2023 10:32:05 +0000 Received: by outflank-mailman (output) from mailman id 535080.832714; Tue, 16 May 2023 10:32:05 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1pyryP-0001pq-9b; Tue, 16 May 2023 10:32:05 +0000 Received: by outflank-mailman (input) for mailman id 535080; Tue, 16 May 2023 09:14:00 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1pyqkq-0000c5-Il for xen-devel@lists.xenproject.org; Tue, 16 May 2023 09:14:00 +0000 Received: from zulu.geekplace.eu (zulu.geekplace.eu [2a03:4000:6:3a8::1]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id fda74b68-f3c9-11ed-b229-6b7b168915f2; Tue, 16 May 2023 11:13:59 +0200 (CEST) Received: from neo-pc.sch (unknown [62.27.195.158]) by zulu.geekplace.eu (Postfix) with ESMTPA id 161854A0B05; Tue, 16 May 2023 11:13:58 +0200 (CEST) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: fda74b68-f3c9-11ed-b229-6b7b168915f2 From: Florian Schmaus To: xen-devel@lists.xenproject.org Cc: Florian Schmaus , Ian Jackson , Wei Liu Subject: [PATCH] m4/ptyfuncs.m4 tools/configure: add linux headers for pty functions Date: Tue, 16 May 2023 11:13:55 +0200 Message-Id: <20230516091355.721398-1-flo@geekplace.eu> X-Mailer: git-send-email 2.39.3 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1684233173209100001 Content-Type: text/plain; charset="utf-8" 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; } =20 #ifdef INCLUDE_LIBUTIL_H #include INCLUDE_LIBUTIL_H +#else +#include +#include #endif int main(void) { openpty(0,0,0,0,0); --=20 2.39.3