From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-3.7 required=3.0 tests=AWL,BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from out1.vger.email (out1.vger.email [IPv6:2620:137:e000::1:20]) by dcvr.yhbt.net (Postfix) with ESMTP id 5D21E1F542 for ; Sun, 4 Jun 2023 21:19:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229877AbjFDVTw (ORCPT ); Sun, 4 Jun 2023 17:19:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34990 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229449AbjFDVTv (ORCPT ); Sun, 4 Jun 2023 17:19:51 -0400 Received: from vuizook.err.no (vuizook.err.no [IPv6:2a02:20c8:2640::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1727FB8 for ; Sun, 4 Jun 2023 14:19:50 -0700 (PDT) Received: from [2400:4160:1877:2b00:2001:ee63:a520:4d09] (helo=glandium.org) by vuizook.err.no with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.96) (envelope-from ) id 1q5v8b-005BfR-1r; Sun, 04 Jun 2023 21:19:46 +0000 Received: from glandium by goemon.lan with local (Exim 4.94.2) (envelope-from ) id 1q5v8U-005jBO-Ge; Mon, 05 Jun 2023 06:19:38 +0900 From: Mike Hommey To: git@vger.kernel.org Cc: Johannes Schindelin , Mike Hommey Subject: [PATCH] Use lowercase includes for some Windows headers Date: Mon, 5 Jun 2023 06:19:34 +0900 Message-ID: <20230604211934.1365289-1-mh@glandium.org> X-Mailer: git-send-email 2.41.0.6.ge371d37104 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org When cross-compiling with the mingw toolchain on a system with a case sensitive filesystem, the mixed case (which is technically correct as per the contents of MS Visual C++) doesn't work (the corresponding mingw headers are all lowercase for some reason). Signed-off-by: Mike Hommey --- compat/win32/trace2_win32_process_info.c | 4 ++-- wrapper.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/compat/win32/trace2_win32_process_info.c b/compat/win32/trace2_win32_process_info.c index a4e33768f4..438af8f818 100644 --- a/compat/win32/trace2_win32_process_info.c +++ b/compat/win32/trace2_win32_process_info.c @@ -3,8 +3,8 @@ #include "../../repository.h" #include "../../trace2.h" #include "lazyload.h" -#include -#include +#include +#include /* * An arbitrarily chosen value to limit the size of the ancestor diff --git a/wrapper.c b/wrapper.c index 67f5f5dbe1..5dc48e815a 100644 --- a/wrapper.c +++ b/wrapper.c @@ -17,7 +17,7 @@ static intmax_t count_fsync_hardware_flush; #ifdef HAVE_RTLGENRANDOM /* This is required to get access to RtlGenRandom. */ #define SystemFunction036 NTAPI SystemFunction036 -#include +#include #undef SystemFunction036 #endif -- 2.41.0.6.ge371d37104