From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) by sourceware.org (Postfix) with ESMTPS id 72E203AA941E for ; Sat, 17 Dec 2022 16:52:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 72E203AA941E 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-pj1-x1031.google.com with SMTP id o1-20020a17090a678100b00219cf69e5f0so9078834pjj.2 for ; Sat, 17 Dec 2022 08:52:53 -0800 (PST) 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=Shw8cS6dK0ZCzKfrmgYaBED2v16ETJuYUHiRn1lk5o0aXiGmMqeGKznBLzqxlT8BH0 ZLHXiLrRk26FDqKJg+2kkef3cFxKRbfrujsW1moAy/ksP6kCXGsywfXixE1w2eAlSnZr 3R2yx4yy3PaHNj4wzPxYZV2N+voSBmGm5sQt4fkPm0YlyngTGNhi3cVOexAu2MKzFbTs ZiBDF4JO8eMyYYnEgEpGWOClTG7M4+CxEEZ+MrVoWfvBnPa0ubGejllQrIGpJLvdY+yl uIQp6Cgvsjddv+Uyyner5fUNas/xscR526UQQ+UHMTs/6iYtvNKCi1KPKTyRHQ6HxAQO wPhA== 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=VKWDFUe2p2ki5Ez1D8n2sLCo7fO2vOe14zZLPO8pbR9gDIl6MwLObKFbgc3pUf2Y+D LHx9Dplaw8Z8h0XK/SvLut9ZzUVGBRFQj9Aw14N9D6FnL4VJn7FSOJY/vHUxsZ+Fu/fC gPo9zcbwvFV/T94tGq9sbsIZkpMyd4ZxjdAGiL4OQHsx570y9ncfQmOGhkWsU0S7W9Se f92HGmZ4c2DfooO25JZYBoYh9N3/1t3esOmcrVah7c5KKU1FSwCq92/W7fiMaJstRe1H LnS/tCcwfpqLOJXrXpc2deGDZWLDap5GLAbtxfCp9bTvOFvpEhOODXviBZuFBKiZvygm x5Xg== X-Gm-Message-State: AFqh2kpX/nE5G8KAuqWsUweWSHiHhEv/920gMQoSwNAQQXzMR/xC08q7 GXELNqIB++kIdTR6yhUULs1VI77LoUc= X-Google-Smtp-Source: AMrXdXvpEVWEnQMCBlaeQIt7OuaVxPqH43Nmig97BlguiB85av6YXsi84rNCZ9x/3uFx/6CM0j0yXA== X-Received: by 2002:a17:90a:cc18:b0:219:4011:b836 with SMTP id b24-20020a17090acc1800b002194011b836mr2681266pju.23.1671295972161; Sat, 17 Dec 2022 08:52:52 -0800 (PST) Received: from localhost.localdomain ([103.94.185.75]) by smtp.googlemail.com with ESMTPSA id s92-20020a17090a2f6500b002191873187dsm6643229pjd.33.2022.12.17.08.52.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Dec 2022 08:52:51 -0800 (PST) From: Yonggang Luo To: elfutils-devel@sourceware.org Cc: Yonggang Luo Subject: [PATCH v2 10/16] libasm: stdio_ext.h are not present on win32 Date: Sun, 18 Dec 2022 00:52:07 +0800 Message-Id: <20221217165213.152-11-luoyonggang@gmail.com> X-Mailer: git-send-email 2.36.1.windows.1 In-Reply-To: <20221217165213.152-1-luoyonggang@gmail.com> References: <20221217165213.152-1-luoyonggang@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.0 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