From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) by sourceware.org (Postfix) with ESMTPS id 9932C384B0C6 for ; Thu, 20 Oct 2022 18:27:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 9932C384B0C6 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pf1-x42e.google.com with SMTP id p14so345077pfq.5 for ; Thu, 20 Oct 2022 11:27:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=LxcUJrqPhIRKreAVjYiV0vCLRQcD3MwyLeIdeKOgafg=; b=l05KHI3DhNvm/r7XCNJozIqOtW018HFiN4pnAvuwcdQc5TNcpTFF8TeRcBS4IoiIAA /F/tScRBdgTimlbZEJH7gATVpeWOYSSrA+hpm9ieNwRoS/Z5cfIeIlIHau3cHxytd0tA ISU+R4WxsO2MHCLcHBKFuJIYwiFmN+S/AXSBft2jdTvYA+X12Iegec0NFK8EWNfNNWdf o3v4CLh5OrEj11rJU1rwXJbEx+W1ZTU/i1sBP+wNctd7G1dI5/cRD1tK4QYNGx0/mxZa mkQW9XeeCmSXm24pmT+TCTwRLF7Rljyv1qcdQpFBmGtAfSbDSpcCaWQ4ifB3gDmelouj IrwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=LxcUJrqPhIRKreAVjYiV0vCLRQcD3MwyLeIdeKOgafg=; b=j0Luwi4Iax7H5RNaM8JDVVmHbT6/sSKBZZ9uStl9VJERE1RweHqIE343vMCDRC6rrW +uqiA6KoOvhClX7+OahSLfkdcXik8a0AMalBTV749iIotQl0c9VIt+hwoT5TKPccx+9u 8XV5ZXg+at9gLT8aAj36OUi2JHvy84oTrz4T9uceh0KR6tO1oMEjT0DVuy8TpTvUw5lB 2JBnOUd8jF27Wcz6J1T9IuD+/+2A8pjmR8UxkrpW8BpqJVgpn8ara/c28LIWoJtkZaIf H3EqRmfnqAUT/hYYUJ45aEw4I2nTUbp4DYyKVrO04pWW5wOtFPRY69kRAklUwZ2mWQO8 +KnQ== X-Gm-Message-State: ACrzQf1kDfH7fSeGxp3Urz3t6LF2j13iJ26NKm5aPrxizfQ6MwCWPnHO wUxB72mIXbC7jEcDLVAsjhLsUYRDEd1bSQ== X-Google-Smtp-Source: AMsMyM5FqqBRojmUUztjvTdABL1k0pRSoa/G5FzZew9LksWVlHHjXGIqRi9wBPKhfCF1EsU3xaeiLw== X-Received: by 2002:a63:4d5:0:b0:460:9a0:b3a2 with SMTP id 204-20020a6304d5000000b0046009a0b3a2mr12966745pge.38.1666290428411; Thu, 20 Oct 2022 11:27:08 -0700 (PDT) Received: from localhost.localdomain ([103.94.185.75]) by smtp.googlemail.com with ESMTPSA id w15-20020a17090a460f00b00202fbd9c21dsm115067pjg.48.2022.10.20.11.27.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Oct 2022 11:27:07 -0700 (PDT) From: Yonggang Luo To: elfutils-devel@sourceware.org Cc: Yonggang Luo Subject: [PATCH 21/25] libasm: stdio_ext.h are not present on win32 Date: Fri, 21 Oct 2022 02:26:00 +0800 Message-Id: <20221020182603.815-22-luoyonggang@gmail.com> X-Mailer: git-send-email 2.36.1.windows.1 In-Reply-To: <20221020182603.815-1-luoyonggang@gmail.com> References: <20221020182603.815-1-luoyonggang@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.1 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,GIT_PATCH_0,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Signed-off-by: Yonggang Luo --- libasm/asm_begin.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libasm/asm_begin.c b/libasm/asm_begin.c index 9e4dfe43..9b6d974e 100644 --- a/libasm/asm_begin.c +++ b/libasm/asm_begin.c @@ -34,10 +34,13 @@ #include #include #include -#include #include #include +#if !defined(_WIN32) +#include +#endif + #include #include "libasmP.h" @@ -56,8 +59,10 @@ prepare_text_output (AsmCtx_t *result) free (result); result = NULL; } +#if !defined(_WIN32) else __fsetlocking (result->out.file, FSETLOCKING_BYCALLER); +#endif } return result; -- 2.36.1.windows.1