From patchwork Tue Apr 30 07:49:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Chestnykh X-Patchwork-Id: 1929361 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=SKTGXZUA; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=uclibc-ng.org (client-ip=89.238.66.15; helo=helium.openadk.org; envelope-from=devel-bounces@uclibc-ng.org; receiver=patchwork.ozlabs.org) Received: from helium.openadk.org (helium.openadk.org [89.238.66.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VTC6q0gzfz23jG for ; Tue, 30 Apr 2024 17:50:40 +1000 (AEST) Received: from helium.openadk.org (localhost [IPv6:::1]) by helium.openadk.org (Postfix) with ESMTP id 55CDF35282E0; Tue, 30 Apr 2024 09:50:32 +0200 (CEST) Authentication-Results: helium.openadk.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=SKTGXZUA; dkim-atps=neutral Received: from mail-lj1-f180.google.com (mail-lj1-f180.google.com [209.85.208.180]) by helium.openadk.org (Postfix) with ESMTPS id D2F4435208EE for ; Tue, 30 Apr 2024 09:50:20 +0200 (CEST) Received: by mail-lj1-f180.google.com with SMTP id 38308e7fff4ca-2dd80401e81so12320101fa.3 for ; Tue, 30 Apr 2024 00:50:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714463419; x=1715068219; darn=uclibc-ng.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=vNzjxQwguoS63ML0/wIExcUxJwjLfH45HqKPHDCIpdg=; b=SKTGXZUAzZ4XBfNiKC0IBG8ZaI1C9ZjWx+hcHhWOiXkwJ6XD3jJ4KaWTp5vF0VM4bp RstRKm5j6AVxDmaZmxcbnYyXtAq58mhFAV5he4J/633mrsYSZAdfOeDEGdeX2WyI86a7 bWfkYkje/Nu9pyk5wzG7WHMP0DjrEeZo8iMgKSXZXomRTi7P3gOD1UfPD9SIy3pUV67J /nLfjF+06eoL9eW9UrJ2y8W0nnLo7fiosYBCPKhcnF3XfmTuGLk9/+erQBjhW8B8ftBV 6TajYPwL+nJyD4dCt2viheuiJOYbfEcfYfbVuVBdcAjP4vVNKrS3LcEzRMGZ+yo2kMgb I/7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714463419; x=1715068219; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=vNzjxQwguoS63ML0/wIExcUxJwjLfH45HqKPHDCIpdg=; b=u7kRIC3PkH272u+hKM0tl7b+odAU54+8dl4C0BzasQ+9RHLPoIe8a3U1S4IgYgf5fr rESTOVO1CTEtUtP3361uHjRmFeLOXGcHBW1PHFkkHM6ADgO5HHQ2H6cMlu9/tOJP8jzC pT0XdED11flpH+sogh00OpFFB231PD0amXGmYFjM6k4olgvgHQ+tU+WSMDulz68Yu9tH s2Hb8MI1ZCVtpxv2sVfKLhKXPqefgnLyY7gnsYSoxT5Qxu4lOUF2m9OJ73tRx3V6RygP 1hYxe90I1vwkzCpfkTvZHqXYJIS37yA/RIr6ntoz8BpwCGAtJqhJ71RCO2uGGHqVCciH KQDw== X-Gm-Message-State: AOJu0YwJqJuMcUti39SIyEPtwu8vkZ4IJpnFKgs4PjzqZf3465isUIr+ skJEm1SE2qMiJ8R7khWc4KOXz3JReyiYajyF6fEzVP2C7+kFAecQY2c0fA== X-Google-Smtp-Source: AGHT+IGdeLCEIkH5T4bdJkBqXqVgXHfhbMTk/99agsmGQQ0X4hdnfnLS1GgDkK0bCRBR+3+eW5tWyA== X-Received: by 2002:a19:2d44:0:b0:51a:d7b7:7d7 with SMTP id t4-20020a192d44000000b0051ad7b707d7mr7793102lft.3.1714463419062; Tue, 30 Apr 2024 00:50:19 -0700 (PDT) Received: from localhost.localdomain (109-252-38-243.nat.spd-mgts.ru. [109.252.38.243]) by smtp.gmail.com with ESMTPSA id k12-20020a0565123d8c00b0051b05554da8sm3230718lfv.295.2024.04.30.00.50.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 00:50:18 -0700 (PDT) From: Dmitry Chestnykh To: devel@uclibc-ng.org Date: Tue, 30 Apr 2024 10:49:33 +0300 Message-ID: <20240430074933.93020-1-dm.chestnykh@gmail.com> X-Mailer: git-send-email 2.44.0 MIME-Version: 1.0 Message-ID-Hash: U2QXQQILKQP6KVHWJLGSRA27L46IILRZ X-Message-ID-Hash: U2QXQQILKQP6KVHWJLGSRA27L46IILRZ X-MailFrom: dm.chestnykh@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header CC: Dmitry Chestnykh X-Mailman-Version: 3.3.3 Precedence: list Subject: [uclibc-ng-devel] [PATCH] Define __USE_TIME_BITS64 when it is necessary. List-Id: uClibc-ng Development Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Glibc and musl both defines this macro. Glibc defines it for 64-bit time_t on 32-bit arch and for 64-bit architectures. Signed-off-by: Dmitry Chestnykh --- include/features.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/features.h b/include/features.h index 11b34205f..4322df7c1 100644 --- a/include/features.h +++ b/include/features.h @@ -437,4 +437,8 @@ # include #endif +#ifdef __UCLIBC_USE_TIME64__ || __TARGET_ARCH_BITS__ == 64 +#define __USE_TIME_BITS64 1 +#endif + #endif /* features.h */