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=-3.9 required=3.0 tests=AWL,BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI,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 B75661F601 for ; Sat, 17 Dec 2022 08:09:44 +0000 (UTC) Authentication-Results: dcvr.yhbt.net; dkim=pass (2048-bit key; unprotected) header.d=gnu.org header.i=@gnu.org header.b="cAhLlB84"; dkim-atps=neutral Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p6SG4-0004Gp-MS; Sat, 17 Dec 2022 03:09:24 -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 1p6SG3-0004GY-D6 for bug-gnulib@gnu.org; Sat, 17 Dec 2022 03:09:23 -0500 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p6SG2-0005hb-Ep; Sat, 17 Dec 2022 03:09:22 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=j318x7zHO39/YCfPFR2RGkUgdNTvoBYqvQ+R446lRC4=; b=cAhLlB84+65i U5PuQkhA1EnRB1VsVrHrfVtgp4ZKxE3R7vbzRaJ1NIMWgjpYbicmW64Wdc/BJAM67pUSXvxo4iFx+ DTCbKuXwK5yFIRpSvXVgmZejPDlAH7ztAzUJOwkSbj2EhRzEcnYOs96YXmuIESj08Ls7BUJJ+iXzR MJFL2XaJcVTMVbE9iT758nsRebZe2T1gGLuBesawFBveHZ63AL1gyvPEFywANZ3ndU3GNxLrGJh1D 5ImA/RQnL/3tfjBszrAs7cIVXJCueVB+q12/BKE5/o2LC4wlOYU5NjOlKCfCEC2ehUo9Xe0C4Adco H9PijRP6uwAJC17PyGdd9g==; Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p6SG2-0004LC-0P; Sat, 17 Dec 2022 03:09:22 -0500 Date: Sat, 17 Dec 2022 10:09:26 +0200 Message-Id: <83fsdeih8p.fsf@gnu.org> From: Eli Zaretskii To: Paul Eggert Cc: bruno@clisp.org, bug-gnulib@gnu.org, rogerdpack@gmail.com In-Reply-To: (message from Paul Eggert on Fri, 16 Dec 2022 15:35:27 -0800) Subject: Re: gettimeofday.c windows version? References: <24d3a74d-ef39-4c55-bf3d-cdbf42ec2c0f@cs.ucla.edu> <83k02wsrea.fsf@gnu.org> <1793643.CLbsiaQdQ3@nimes> <834ju0sn17.fsf@gnu.org> <19c42b09-ed42-f8df-d504-f3a99324874c@cs.ucla.edu> <834ju0qryk.fsf@gnu.org> 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 > Date: Fri, 16 Dec 2022 15:35:27 -0800 > Cc: bruno@clisp.org, bug-gnulib@gnu.org, rogerdpack@gmail.com > From: Paul Eggert > > On 12/12/22 12:37, Eli Zaretskii wrote: > > It should be easy to arrange for Emacs to compile Gnulib source code > with whatever value of _WIN32_WINNT is appropriate for Gnulib, by > modifying emacs/lib/Makefile.in appropriately. For example, we could > leave gettimeofday.c alone add a line like this to Makefile.in: > > ALL_CFLAGS += -D_WIN32_WINNT=_WIN32_WINNT_WINXP > > Would something like this address the issue you're thinking of? > > In this case, yes. > > I looked into doing that in the Emacs source, but discovered that emacs/nt/inc/ms-w32.h already does "# > define _WIN32_WINNT 0x0400" for MinGW so I guess we're OK already as that's even older than > _WIN32_WINNT_WINXP which is 0x0501. Of course I don't know MS-Windows well and so may have missed > something. No, you haven't missed anything. We are still trying to support Windows 9X, which is why the low setting of _WIN32_WINNT. Note that we don't use this low setting for MinGW64, which tossed support for XP and older versions several years ago anyway. We only use this when Emacs is built with mingw.org's MinGW.