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-Status: No, score=-4.3 required=3.0 tests=AWL,BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 5D54C1FC0B for ; Fri, 5 Mar 2021 20:17:34 +0000 (UTC) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id E43D5399F009; Fri, 5 Mar 2021 20:15:59 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E43D5399F009 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1614975360; bh=656g24AHe+uEFLAap00joi+XiMoOwKV1SL6iVVDcPR0=; h=To:Subject:Date:In-Reply-To:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=Znw+Lagfj4PGu9J8WYVxNGWkJxlquRGvFN3RuUOTTbW8LiOrgC2E8ztw4LAVPYNTc 4JkGWeNmb6C3WG7Y4iaw6ZjfhubN8IiGPG1IZBUvNblcKsAdW1Q4j2WaaC5l6zoDGB 3g7ks/q6QtKcmNLqJM9s0nbL+y5P1WwpU8jnpUuk= Received: from mail-qt1-x829.google.com (mail-qt1-x829.google.com [IPv6:2607:f8b0:4864:20::829]) by sourceware.org (Postfix) with ESMTPS id DC642399C03D for ; Fri, 5 Mar 2021 20:15:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org DC642399C03D Received: by mail-qt1-x829.google.com with SMTP id v64so2772251qtd.5 for ; Fri, 05 Mar 2021 12:15:56 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=656g24AHe+uEFLAap00joi+XiMoOwKV1SL6iVVDcPR0=; b=XvE1prAQXNg2QmUmsk0GniaIwgCbpiT+13GwQY7yFWAhg9znE90C9cyrS2zq6sKyjQ amtgvEVrG10VefmmufNlRyv7PAcnZUyvyoIf8KWrPgJJTBVOEKGciISAEMuQyGllnNzh eA1qyWvSzM779Bs+Z/J2CcJ8GKXr8XaCahtwN+DCpFzxduXFuPjQCuULA2WpAEapXaYY U9gZUUZKFDaSinRovJgPceFLbfiwyBQzumBdVm9T/keNC4cvz+iGEB4bfW1Dn/+K9SaW O0hmV5vj27NfqjzPMMcotiyg808plKGULb8o/UXEUEwEnzoaRXInA7tQviUTHww0KFXA 9wkg== X-Gm-Message-State: AOAM532C1cS447lE/Sl11Ft+VNozbRVN9kOiBWYij9pNj7kilm55rQBm iepnWVsh/NK4dO91PrNQ3RfB5U5MSShieA== X-Google-Smtp-Source: ABdhPJyiot8n4K+L3+ab9+JlzXWNU/tpr9MYePuSD4xobdx4xtjkNv5XLKPNRotR5YMmztN/4+gh4Q== X-Received: by 2002:ac8:6e85:: with SMTP id c5mr3749754qtv.299.1614975356416; Fri, 05 Mar 2021 12:15:56 -0800 (PST) Received: from localhost.localdomain ([177.194.48.209]) by smtp.googlemail.com with ESMTPSA id c5sm2526145qkl.21.2021.03.05.12.15.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 05 Mar 2021 12:15:56 -0800 (PST) To: libc-alpha@sourceware.org Subject: [PATCH 28/52] y2038: Add __USE_TIME_BITS64 support for struct timeval Date: Fri, 5 Mar 2021 17:14:54 -0300 Message-Id: <20210305201518.798584-29-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210305201518.798584-1-adhemerval.zanella@linaro.org> References: <20210305201518.798584-1-adhemerval.zanella@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Adhemerval Zanella via Libc-alpha Reply-To: Adhemerval Zanella Errors-To: libc-alpha-bounces@sourceware.org Sender: "Libc-alpha" The __USE_TIME_BITS64 is not defined internally yet. --- time/bits/types/struct_timeval.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/time/bits/types/struct_timeval.h b/time/bits/types/struct_timeval.h index 70394ce886..3466137c35 100644 --- a/time/bits/types/struct_timeval.h +++ b/time/bits/types/struct_timeval.h @@ -7,7 +7,12 @@ microsecond but also has a range of years. */ struct timeval { +#ifdef __USE_TIME_BITS64 + __time64_t tv_sec; /* Seconds. */ + __suseconds64_t tv_usec; /* Microseconds. */ +#else __time_t tv_sec; /* Seconds. */ __suseconds_t tv_usec; /* Microseconds. */ +#endif }; #endif -- 2.25.1