[17/25] libelf: uid_t, gid_t and mode_t are not comes with msvcrt, so using long/unsigned long instead on win32
Message ID | 20221020182603.815-18-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 3F2B1383DB8D for <patchwork@sourceware.org>; Thu, 20 Oct 2022 18:27:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3F2B1383DB8D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666290459; bh=WkjdKgikM8lQqVvpoElm4Qa2mG6bPEzSvINd5U512O0=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Help:List-Subscribe:From:Reply-To:From; b=LJ5xbxrA9K02GvHy1gwbmEkM6OvevIPL0cgS+DmXUSIolAlOXp9jlCmpxi7KeTfIA 8fNlCLATiF7yIEh8k9OYYR+kmGGsnheUDBv/7zhOaiyeiKxoEAbki0WWzOy2+gPAiW Eo49euaJgMdJxUTcVh2nYkfYpUkuqvzbNAzApRr0= X-Original-To: elfutils-devel@sourceware.org Delivered-To: elfutils-devel@sourceware.org Received: from mail-pf1-x42d.google.com (mail-pf1-x42d.google.com [IPv6:2607:f8b0:4864:20::42d]) by sourceware.org (Postfix) with ESMTPS id A862F384D154 for <elfutils-devel@sourceware.org>; Thu, 20 Oct 2022 18:27:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A862F384D154 Received: by mail-pf1-x42d.google.com with SMTP id i3so323488pfk.9 for <elfutils-devel@sourceware.org>; Thu, 20 Oct 2022 11:27:00 -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=WkjdKgikM8lQqVvpoElm4Qa2mG6bPEzSvINd5U512O0=; b=Hq1Z9tKTqKm3dq41s7wc06EXi7+rV53NFOQ6M2FP+ghqlyDOfPB7A1yY0QZSvTJ4OC no0iMeGIfebs42h5T/2aX7sgV5JfxDq7v+Db6rDmeor9s7m974V2PuE9Cvbrtzc3nguo xu9flvhgelhXbbUEBobpB0OU9uFNb08in05kG6dAGhmd+x4Zrf/ZV5hdpwR4EgE1n4GW a58yCeHjxzeiujwMfgjuI7Wb9jyHQ1EWAiO6MRzAvkMlOJ80DeZPoNrn6TQcs5RUlCGs AQ/GfqY4oVyuQ9yjNUvca61H5Pkk4CMmwE/A9t+Z7yXL7sjx3nZ2ddynS/EgOMoTLiU5 e8ZQ== X-Gm-Message-State: ACrzQf2ObWAAzjaS2Ncj4L/ZozuHJOY8/I4YqbnOkXgONSEEgE1lm10D DWVbfyzE04OrFs4obowiv1GFi3ocgmQ24g== X-Google-Smtp-Source: AMsMyM7t/l7qNy8lbha5WysU4vwfCx8y2DVJ+LBX4XjGVCLxarsc0t9AL4ERLd1/e8GIFWRBtGGT1w== X-Received: by 2002:a65:44c5:0:b0:439:4697:ead0 with SMTP id g5-20020a6544c5000000b004394697ead0mr12680087pgs.45.1666290419803; Thu, 20 Oct 2022 11:26:59 -0700 (PDT) Received: from localhost.localdomain ([103.94.185.75]) by smtp.googlemail.com with ESMTPSA id w15-20020a17090a460f00b00202fbd9c21dsm115067pjg.48.2022.10.20.11.26.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 20 Oct 2022 11:26:59 -0700 (PDT) To: elfutils-devel@sourceware.org Subject: [PATCH 17/25] libelf: uid_t, gid_t and mode_t are not comes with msvcrt, so using long/unsigned long instead on win32 Date: Fri, 21 Oct 2022 02:25:56 +0800 Message-Id: <20221020182603.815-18-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.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
Oct. 20, 2022, 6:25 p.m. UTC
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
---
libelf/libelf.h | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/libelf/libelf.h b/libelf/libelf.h index a139e733..2fa3838b 100644 --- a/libelf/libelf.h +++ b/libelf/libelf.h @@ -195,9 +195,15 @@ typedef struct { char *ar_name; /* Name of archive member. */ time_t ar_date; /* File date. */ +#if defined(_WIN32) + long ar_uid; + long ar_gid; + unsigned long ar_mode; +#else uid_t ar_uid; /* User ID. */ gid_t ar_gid; /* Group ID. */ mode_t ar_mode; /* File mode. */ +#endif int64_t ar_size; /* File size. */ char *ar_rawname; /* Original name of archive member. */ } Elf_Arhdr;