Message ID | 20221020182603.815-22-luoyonggang@gmail.com |
---|---|
State | Superseded |
Headers |
Return-Path: <elfutils-devel-bounces+patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3EBD7384D16E for <patchwork@sourceware.org>; Thu, 20 Oct 2022 18:27:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3EBD7384D16E DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666290464; bh=LxcUJrqPhIRKreAVjYiV0vCLRQcD3MwyLeIdeKOgafg=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Help:List-Subscribe:From:Reply-To:From; b=xpceOzCMJUwGAriP0a7vagbi30xtcxJCC3EOqzP17Jpl5XJuOwKItD5Ep26Bn8X2A hsozAZ1TKDMkNugCmC3HqRH3DB3kgEs7A1pYAGRk/5pozxpRriGlQXMubX99nWH5Jy 8wuUuQ67vMZnp8vjw94j/B0ddHfl5hKEbqp0ut2E= X-Original-To: elfutils-devel@sourceware.org Delivered-To: elfutils-devel@sourceware.org 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 <elfutils-devel@sourceware.org>; Thu, 20 Oct 2022 18:27:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 9932C384B0C6 Received: by mail-pf1-x42e.google.com with SMTP id p14so345077pfq.5 for <elfutils-devel@sourceware.org>; Thu, 20 Oct 2022 11:27:09 -0700 (PDT) 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) To: elfutils-devel@sourceware.org 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 X-BeenThere: elfutils-devel@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Elfutils-devel mailing list <elfutils-devel.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/elfutils-devel>, <mailto:elfutils-devel-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/elfutils-devel/> List-Help: <mailto:elfutils-devel-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/elfutils-devel>, <mailto:elfutils-devel-request@sourceware.org?subject=subscribe> From: Yonggang Luo via Elfutils-devel <elfutils-devel@sourceware.org> Reply-To: Yonggang Luo <luoyonggang@gmail.com> Errors-To: elfutils-devel-bounces+patchwork=sourceware.org@sourceware.org Sender: "Elfutils-devel" <elfutils-devel-bounces+patchwork=sourceware.org@sourceware.org> |
Series |
Patches for building with mingw/gcc msvc/clang-cl
|
|
Commit Message
Yonggang Luo
Oct. 20, 2022, 6:26 p.m. UTC
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
---
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 <assert.h> #include <errno.h> #include <stdio.h> -#include <stdio_ext.h> #include <stdlib.h> #include <string.h> +#if !defined(_WIN32) +#include <stdio_ext.h> +#endif + #include <gelf.h> #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;