From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS22989 209.51.188.0/24 X-Spam-Status: No, score=-4.7 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,RCVD_IN_DNSWL_MED,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 92A5C1F852 for ; Fri, 23 Dec 2022 23:47:51 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (1024-bit key; unprotected) header.d=cs.ucla.edu header.i=@cs.ucla.edu header.b="QrJWnFoA"; dkim-atps=neutral Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p8rlL-0003Cd-CV; Fri, 23 Dec 2022 18:47:39 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p8rlI-0003C4-Gk for bug-gnulib@gnu.org; Fri, 23 Dec 2022 18:47:37 -0500 Received: from zimbra.cs.ucla.edu ([131.179.128.68]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p8rlG-0001Hc-0R; Fri, 23 Dec 2022 18:47:35 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 1D69916005C; Fri, 23 Dec 2022 15:47:29 -0800 (PST) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id 7dKvIqxXOQvv; Fri, 23 Dec 2022 15:47:28 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 206D2160066; Fri, 23 Dec 2022 15:47:28 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.9.2 zimbra.cs.ucla.edu 206D2160066 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cs.ucla.edu; s=78364E5A-2AF3-11ED-87FA-8298ECA2D365; t=1671839248; bh=cPJr+whxp06QS+Io2QPXHbrZYbdeo/R7TqsOEvbmIfM=; h=Message-ID:Date:MIME-Version:Subject:To:From:Content-Type: Content-Transfer-Encoding; b=QrJWnFoA42VbLhnWKmRltiLnMewr3IiA+imzGHuLgew6/JoGGy7HqQPhItM52hzes TlNmaKo8zcX38/KHg+izQvjMM1MioVTYSccVEwYpa9sueQxxzlsr/5EsYb0Vb1gzd4 azL8mINZDSZTOUrJap4i9we6gXyT0IluJAYL9HA8= X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id SoA-eLFkiHTj; Fri, 23 Dec 2022 15:47:28 -0800 (PST) Received: from [192.168.86.236] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id D9A3D16005C; Fri, 23 Dec 2022 15:47:27 -0800 (PST) Message-ID: <03e5dc56-5ae3-d56f-c21b-f9b07d6e956d@cs.ucla.edu> Date: Fri, 23 Dec 2022 15:47:27 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2 Subject: Re: gettimeofday.c windows version? Content-Language: en-US To: Roger Pack , Bruno Haible Cc: bug-gnulib@gnu.org, Eli Zaretskii References: <2153083.vXnMlVU4IS@nimes> From: Paul Eggert In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=131.179.128.68; envelope-from=eggert@cs.ucla.edu; helo=zimbra.cs.ucla.edu X-Spam_score_int: -53 X-Spam_score: -5.4 X-Spam_bar: ----- X-Spam_report: (-5.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, NICE_REPLY_A=-1.148, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: bug-gnulib@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gnulib discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org Sender: bug-gnulib-bounces+normalperson=yhbt.net@gnu.org On 12/23/22 00:38, Roger Pack wrote: > $ x86_64-w64-mingw32-gcc -DHAVE_CONFIG_H -I. -I../.. -U_FORTIFY_SOURCE > -D_FORTIFY_SOURCE=0 -mtune=generic -O3 -MT gettimeofday.o -MD -MP -MF > $depbase.Tpo -c -o - -dM -E gettimeofday.c | grep WIN32_WINNT > #define _WIN32_WINNT 0xa00 > https://www.mail-archive.com/mingw-w64-public@lists.sourceforge.net/msg18212.html If this is from a build of vanilla Gnulib, that's OK: Gnulib is merely following MingW's lead and if MingW defaults to MS-Windows 10 then that'll be the default in Gnulib too. If this is from an Emacs build then I suggest tracking down why Emacs isn't defining _WIN32_WINNT to a value appropriate for Emacs and MingW. nt/inc/ms-w32.h has a "#define _WIN32_WINNT 0x0400" that should be overriding the MingW default.