From patchwork Tue Mar 5 14:33:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Beulich X-Patchwork-Id: 13582502 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id F15E6C54798 for ; Tue, 5 Mar 2024 14:34:10 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.688815.1073459 (Exim 4.92) (envelope-from ) id 1rhVrd-0003Is-38; Tue, 05 Mar 2024 14:33:53 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 688815.1073459; Tue, 05 Mar 2024 14:33:53 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rhVrd-0003Il-08; Tue, 05 Mar 2024 14:33:53 +0000 Received: by outflank-mailman (input) for mailman id 688815; Tue, 05 Mar 2024 14:33:51 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1rhVrb-0003IO-8x for xen-devel@lists.xenproject.org; Tue, 05 Mar 2024 14:33:51 +0000 Received: from mail-ed1-x52a.google.com (mail-ed1-x52a.google.com [2a00:1450:4864:20::52a]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 6171e28a-dafd-11ee-a1ee-f123f15fe8a2; Tue, 05 Mar 2024 15:33:49 +0100 (CET) Received: by mail-ed1-x52a.google.com with SMTP id 4fb4d7f45d1cf-563d56ee65cso8639815a12.2 for ; Tue, 05 Mar 2024 06:33:49 -0800 (PST) Received: from [10.156.60.236] (ip-037-024-206-209.um08.pools.vodafone-ip.de. [37.24.206.209]) by smtp.gmail.com with ESMTPSA id y26-20020a056402135a00b0056694006fa7sm5900656edw.70.2024.03.05.06.33.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 05 Mar 2024 06:33:48 -0800 (PST) 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: 6171e28a-dafd-11ee-a1ee-f123f15fe8a2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=google; t=1709649229; x=1710254029; darn=lists.xenproject.org; h=content-transfer-encoding:autocrypt:subject:from:cc:to :content-language:user-agent:mime-version:date:message-id:from:to:cc :subject:date:message-id:reply-to; bh=dXAIYdOVmaJtr5P/s2+33MPZa5QVmPdxL5PDXXJoJT8=; b=gUWzXNYiP9+7NphhJvmdIiqi8W/1Sfax44XlAJfPWHDYvCnnXPAN6xlx59I9L2Y12q tYoEOzze8lnDvvXeP2h5iy3Ubbqhvcx5nj982E3fAyojvKTnRv3H7xb31SyV/kPMVslx sZEa8hImZnqOZ5TyldrIEgObXln3LqPfbzRzDWCrXKaCJbExkkVY2zfIFwBPTKOCO77b G/qrVFQnHbkK/w3quXvY0qK6ZOq5rdD4Vn+4eeS7iSt160jqBLMyvS4xO4ZMaNNS/Jdd 2VRoA/cK6PzC6HvbY5yz3wUn93esjUmx5ZOLSlOKNlHg+8/6L/w7wXmNoTzKJy7wEnkb BeGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709649229; x=1710254029; h=content-transfer-encoding:autocrypt:subject:from:cc:to :content-language:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=dXAIYdOVmaJtr5P/s2+33MPZa5QVmPdxL5PDXXJoJT8=; b=aRWbJIDEoI1/ms6wUxw8oYc8xJC1A3Vng1rNNLdjB1xL8jevhqFkllzu1VbZU4crAL twjlUwIbwX4ouPZVF9kHRwML/LyAvxiousOF62UTgUS5t4kKK+G7yPl4G1pvvw1JOFV+ GjyTR5Ys1nYHZbx347cP36zXcmCluxHRmwCldEMeauZHKz82yjOl47kIWtda8rUq7MgA uLy0GJn+cV4spU9nSMI2vyj2K6Wj55S0U/Cbad5CshGrEc2sG1+Ol87QC4GbX+2CDt/I GN9NriWBGFOe9tS1AK5ugocmlrNNnjArVdC9tAe0XNBao9YUdKYDSd6jicIfl99Wo0wh pyOQ== X-Gm-Message-State: AOJu0YyQsToH44uJejH//VYX9b6c2rRKnYgCxQwkgS3iQYOOMCOaZ/Jf yEV1Zhw7GklQB6GsO6KKNYL9+D+WOz6t89f6yU6WHXjzwcDFkWBpcQ0dgAHUdUowjeSPycvIk6k = X-Google-Smtp-Source: AGHT+IHJ95z9b4X8dJ0/Ajco9LCr8fLKj1kqrm7C6Ssio3MkQudhQMnCSGKOYTWQtz/pXIrroxp7sg== X-Received: by 2002:a05:6402:2318:b0:565:1049:c013 with SMTP id l24-20020a056402231800b005651049c013mr8348985eda.10.1709649228752; Tue, 05 Mar 2024 06:33:48 -0800 (PST) Message-ID: <3aca1707-9eab-4b85-a4ae-e56508b15843@suse.com> Date: Tue, 5 Mar 2024 15:33:47 +0100 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Content-Language: en-US To: "xen-devel@lists.xenproject.org" Cc: Anthony Perard , Wei Liu , Juergen Gross From: Jan Beulich Subject: [PATCH] 9pfsd: allow building with old glibc Autocrypt: addr=jbeulich@suse.com; keydata= xsDiBFk3nEQRBADAEaSw6zC/EJkiwGPXbWtPxl2xCdSoeepS07jW8UgcHNurfHvUzogEq5xk hu507c3BarVjyWCJOylMNR98Yd8VqD9UfmX0Hb8/BrA+Hl6/DB/eqGptrf4BSRwcZQM32aZK 7Pj2XbGWIUrZrd70x1eAP9QE3P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Mu8YQRFVdUvtSpaAs8OFfGQ0ia3LGZcjA6Ik2+xcqscEJzNH+qh8V m5jjp28yZgaqTaRbg3M/+MTbMpicpZuqF4rnB0AQD12/3BNWDR6bmh+EkYSMcEIpQmBM51qM EKYTQGybRCjpnKHGOxG0rfFY1085mBDZCH5Kx0cl0HVJuQKC+dV2ZY5AqjcKwAxpE75MLFkr wkkEGBECAAkFAlk3nEQCGwwACgkQoDSui/t3IH7nnwCfcJWUDUFKdCsBH/E5d+0ZnMQi+G0A nAuWpQkjM1ASeQwSHEeAWPgskBQL Neither pread() / pwrite() nor O_DIRECTORY are available from glibc 2.11.3 headers without defining (e.g.) _GNU_SOURCE. Supplying the definition unconditionally shouldn't be a problem, seeing that various other tools/ components do so, too. Signed-off-by: Jan Beulich Reviewed-by: Juergen Gross Acked-by: Anthony PERARD --- a/tools/9pfsd/Makefile +++ b/tools/9pfsd/Makefile @@ -5,7 +5,7 @@ XEN_ROOT = $(CURDIR)/../.. include $(XEN_ROOT)/tools/Rules.mk -CFLAGS += $(PTHREAD_CFLAGS) +CFLAGS += $(PTHREAD_CFLAGS) -D_GNU_SOURCE LDFLAGS += $(PTHREAD_LDFLAGS) TARGETS := xen-9pfsd