Message ID | 20221217165213.152-11-luoyonggang@gmail.com |
---|---|
State | Dropped |
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 525C23AA983B for <patchwork@sourceware.org>; Sat, 17 Dec 2022 16:54:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 525C23AA983B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1671296041; bh=LxcUJrqPhIRKreAVjYiV0vCLRQcD3MwyLeIdeKOgafg=; h=To:Cc:Subject:Date:In-Reply-To:References:List-Id: List-Unsubscribe:List-Archive:List-Help:List-Subscribe:From: Reply-To:From; b=dyWiSHT8PwPCqKoYdy8VsqpmaK4LNaDI8d87KHHpWkr2il3S4CbMPX1tFUgiro+n/ x2t8f+q5s+CkY54dT9xgwPmcLzDCD51bRHLK7TAg9YPjTf7g3ZJaOXS40yNyU1E5JH c3k/+d4Bw7iiRMWP9YhgbV17DeInfu+lqy+gb+C0= X-Original-To: elfutils-devel@sourceware.org Delivered-To: elfutils-devel@sourceware.org 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 <elfutils-devel@sourceware.org>; Sat, 17 Dec 2022 16:52:53 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 72E203AA941E Received: by mail-pj1-x1031.google.com with SMTP id o1-20020a17090a678100b00219cf69e5f0so9078834pjj.2 for <elfutils-devel@sourceware.org>; Sat, 17 Dec 2022 08:52:53 -0800 (PST) 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) To: elfutils-devel@sourceware.org Cc: Yonggang Luo <luoyonggang@gmail.com> 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 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
Dec. 17, 2022, 4:52 p.m. UTC
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
---
libasm/asm_begin.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
Comments
Hi, On Sun, 2022-12-18 at 00:52 +0800, Yonggang Luo via Elfutils-devel wrote: > 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 > + Can we have a configure check instead? > #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; __fsetlocking is used in a lot of other places. Cheers, Mark
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;