From patchwork Tue Apr 30 09:12:05 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dmitry Chestnykh X-Patchwork-Id: 1929410 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=CPOtztWM; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=uclibc-ng.org (client-ip=2a00:1828:2000:679::23; helo=helium.openadk.org; envelope-from=devel-bounces@uclibc-ng.org; receiver=patchwork.ozlabs.org) Received: from helium.openadk.org (helium.openadk.org [IPv6:2a00:1828:2000:679::23]) (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 4VTDxr1nlkz20fY for ; Tue, 30 Apr 2024 19:13:02 +1000 (AEST) Received: from helium.openadk.org (localhost [IPv6:::1]) by helium.openadk.org (Postfix) with ESMTP id 20A3C35282E0; Tue, 30 Apr 2024 11:12:51 +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=CPOtztWM; dkim-atps=neutral Received: from mail-lf1-f49.google.com (mail-lf1-f49.google.com [209.85.167.49]) by helium.openadk.org (Postfix) with ESMTPS id 9C21B35208EE for ; Tue, 30 Apr 2024 11:12:47 +0200 (CEST) Received: by mail-lf1-f49.google.com with SMTP id 2adb3069b0e04-51d9af6bf36so314666e87.3 for ; Tue, 30 Apr 2024 02:12:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1714468366; x=1715073166; darn=uclibc-ng.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=6WzbQpYumGhEaCZCuNAEzlH9oM7emIi1Q80XeE2Cxbg=; b=CPOtztWMEGwdZX/Tu92I9ksPrSbQQ04IxZxFeo1Wrm6nvFgPup9jagdZsUXCIFcbEv kpF+bxfdAmTVzo5J1p+5TVLk34QDtbR3wwfybmPjz2x9OPlDzY3k1hxn+THx1Xe0VFcH 7wQcAwH/wHUhgR2THOatrGw31MNuZX5HMJjbjJ4i3OMgej21UCq4M2yjehJOd1Ihxb5O mfPk1IhHiR47fAZwu1NHrWncFTXGkpcsBPltWNgaZ5uf9gE6pCG5jFdsLe/fAZjrXpxW M8/LWu3HBBtydm1pctTf42g4j1jlnczLCOXqvnJKeosGUgc8uk4+CIOaQe6YSRSo0L+B pBGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1714468366; x=1715073166; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=6WzbQpYumGhEaCZCuNAEzlH9oM7emIi1Q80XeE2Cxbg=; b=elHm7nXgfZ968MeBo8+punYv8i6alxQQnicsF3mTGbuS+apZdNkNk8vD5jc2WdDEpg tjP88Ld7qZKJp4cFGTph5x0GZMwDFRq/zijiAwuQLmg2q1WS1qAdNthFcwheyxID0vlO DP0YdyF0sQTxilBv+l8lG/nKEd2OEaGPljmNhR8c4aEJr2uW3yQ/NmylnZtuv38hYYqM 1GTkFIGbhuWfyMrp5mGWCbADAKnWVj0tkV78efAoYoTyP748mjRD0/zsBoayqd6DqnHO QH3Xm9tqPvjlkTcOI59YAl30mphcMuJD87BZStMoqp1SE+V/ldJu3YuRpbfk8NOpAZPj bumg== X-Gm-Message-State: AOJu0YwCjYdGrsvtWqJL81KR//ZI8Wy+SPZACTDixOxVykH1U2oJH4L8 kln9W4UrCWnlyb+lH+AdER4Q0q+ihk7borCGh5ygAy4Yw/f66TE+mXnXfA== X-Google-Smtp-Source: AGHT+IEaJ+6YyeaAvAK1PW8loJY7egLYPHoQDAxTtPr4RinfLn/gkLIecn38mCZ38WImCwKKkBGiMw== X-Received: by 2002:a05:6512:3da0:b0:51e:2f65:633f with SMTP id k32-20020a0565123da000b0051e2f65633fmr1953049lfv.4.1714468366120; Tue, 30 Apr 2024 02:12:46 -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 s6-20020a197706000000b00518d7c38cb9sm4509716lfc.284.2024.04.30.02.12.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Apr 2024 02:12:45 -0700 (PDT) From: Dmitry Chestnykh To: devel@uclibc-ng.org Date: Tue, 30 Apr 2024 12:12:05 +0300 Message-ID: <20240430091205.120535-1-dm.chestnykh@gmail.com> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240430074933.93020-1-dm.chestnykh@gmail.com> References: <20240430074933.93020-1-dm.chestnykh@gmail.com> MIME-Version: 1.0 Message-ID-Hash: EHSA3UCORE6XEDCHU7LP3V6GXWDOQ35N X-Message-ID-Hash: EHSA3UCORE6XEDCHU7LP3V6GXWDOQ35N 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 v2] 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..b5d4e79f2 100644 --- a/include/features.h +++ b/include/features.h @@ -437,4 +437,8 @@ # include #endif +#if defined(__UCLIBC_USE_TIME64__) || __TARGET_ARCH_BITS__ == 64 +#define __USE_TIME_BITS64 1 +#endif + #endif /* features.h */