From patchwork Wed Jun 23 17:20:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella Netto X-Patchwork-Id: 43974 Return-Path: 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 ED53B3851C1F for ; Wed, 23 Jun 2021 17:21:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org ED53B3851C1F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1624468879; bh=wIKY5ddnxeRONl7npC+XnLwKwYH7uQAcegMxtcbo5Iw=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=W1yMfC4E+pWhVe00egEOF1TbQrtDtJnGJdxag6e7vf/QBxwDicEMU29IgUWEWGVU/ +jt3DA3WrqwGXEpyL/F2CQTn59NP3/RPFfNpj2Ul63kwMobiWJS49Il6SJxRksRD4z epdVJr0pwQWzxmpwL7o44qwUD68f0SGVg7tsTJug= X-Original-To: libc-alpha@sourceware.org Delivered-To: libc-alpha@sourceware.org Received: from mail-qv1-xf33.google.com (mail-qv1-xf33.google.com [IPv6:2607:f8b0:4864:20::f33]) by sourceware.org (Postfix) with ESMTPS id C78B03857831 for ; Wed, 23 Jun 2021 17:20:56 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C78B03857831 Received: by mail-qv1-xf33.google.com with SMTP id y11so1861698qvv.0 for ; Wed, 23 Jun 2021 10:20:56 -0700 (PDT) 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:mime-version :content-transfer-encoding; bh=wIKY5ddnxeRONl7npC+XnLwKwYH7uQAcegMxtcbo5Iw=; b=Vrm9s+Bjl5fHsVIuxEQyJFHMvKPQlW9+Saaz99/O/TU5FV9R/nfYzVsSl/23w9tDBe JyWut1SXbWNTfVFf3G+cetXEgzXTp/dTAvGBNNEn6IdyiDFTYtyW7usVvLvdyEjebSXI KgBEoL5hb2/SEGl1PmbwaA8l6NE9wW9sl62fmlFghdzyGHlrRIFuO62Eb4EV/ZGT7dD3 Ls2DLHWbY2m90g7KNbRapxUVJlwyPqLN0s/lrkkJJCltGOqMSSa0x3F78ctlDrzpdfst 5pFCyIrU8AtU+uHKLRlgchlmkdrnKbB2AXzA5doz8GpOQN4EPULBSH6MamPbJNk9m4Ob L2BQ== X-Gm-Message-State: AOAM533Jvk07l3ES9Iu9bT9X4StHMf+YgetnuA24NmyAg8XC6zSegf05 PPSuvbxtAZUpiljPj+BFtD++1UXiKupcTg== X-Google-Smtp-Source: ABdhPJxnV5Gv8OH0edZGVOIzkbXq1I8TnG2c4KnJPqty7anN6Go6DhwYidbjTlOKqN7nnopxJnDLsw== X-Received: by 2002:a05:6214:18f2:: with SMTP id ep18mr641875qvb.37.1624468856174; Wed, 23 Jun 2021 10:20:56 -0700 (PDT) Received: from birita.. ([177.194.59.218]) by smtp.gmail.com with ESMTPSA id p6sm361354qkp.80.2021.06.23.10.20.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Jun 2021 10:20:55 -0700 (PDT) To: libc-alpha@sourceware.org Subject: [COMMITTED] hurd: Fix build after 52a5fe70a2 Date: Wed, 23 Jun 2021 14:20:52 -0300 Message-Id: <20210623172052.3749841-1-adhemerval.zanella@linaro.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Spam-Status: No, score=-12.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, KAM_NUMSUBJECT, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org 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: , X-Patchwork-Original-From: Adhemerval Zanella via Libc-alpha From: Adhemerval Zanella Netto Reply-To: Adhemerval Zanella Errors-To: libc-alpha-bounces+patchwork=sourceware.org@sourceware.org Sender: "Libc-alpha" Hurd does not support 64-bit time_t internally. --- io/file_change_detection.c | 6 ++++-- sysdeps/posix/getaddrinfo.c | 3 ++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/io/file_change_detection.c b/io/file_change_detection.c index fad0907223..aad8edb059 100644 --- a/io/file_change_detection.c +++ b/io/file_change_detection.c @@ -56,8 +56,10 @@ __file_change_detection_for_stat (struct file_change_detection *file, { file->size = st->st_size; file->ino = st->st_ino; - file->mtime = st->st_mtim; - file->ctime = st->st_ctim; + file->mtime = (struct __timespec64) { st->st_mtim.tv_sec, + st->st_mtim.tv_nsec }; + file->ctime = (struct __timespec64) { st->st_ctim.tv_sec, + st->st_ctim.tv_nsec }; } } libc_hidden_def (__file_change_detection_for_stat) diff --git a/sysdeps/posix/getaddrinfo.c b/sysdeps/posix/getaddrinfo.c index f7f19f1d7c..838a68f022 100644 --- a/sysdeps/posix/getaddrinfo.c +++ b/sysdeps/posix/getaddrinfo.c @@ -1641,7 +1641,8 @@ static struct __timespec64 gaiconf_mtime; static inline void save_gaiconf_mtime (const struct __stat64_t64 *st) { - gaiconf_mtime = st->st_mtim; + gaiconf_mtime = (struct __timespec64) { st->st_mtim.tv_sec, + st->st_mtim.tv_nsec }; } static inline bool