From patchwork Mon May 18 10:03:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Darren Tucker X-Patchwork-Id: 11555149 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 25C2C739 for ; Mon, 18 May 2020 10:04:19 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0D53920825 for ; Mon, 18 May 2020 10:04:19 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=dtucker-net.20150623.gappssmtp.com header.i=@dtucker-net.20150623.gappssmtp.com header.b="MclH/Y7I" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726797AbgERKES (ORCPT ); Mon, 18 May 2020 06:04:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726676AbgERKEP (ORCPT ); Mon, 18 May 2020 06:04:15 -0400 Received: from mail-pl1-x62a.google.com (mail-pl1-x62a.google.com [IPv6:2607:f8b0:4864:20::62a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2014CC061A0C for ; Mon, 18 May 2020 03:04:15 -0700 (PDT) Received: by mail-pl1-x62a.google.com with SMTP id w19so2250432ply.11 for ; Mon, 18 May 2020 03:04:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dtucker-net.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=rKVmbmNzkaxn/8C3Iw6aDQpVn2ZuFWYfmTfStr4MBnY=; b=MclH/Y7IRULCg2Zxd4uFgau9UJtoxjZy0n5nL6ilP/qJu9N16CoPGE0fumyJCR3XjA LgvXKkPof9CrkIu6U+ADKx5Q2DJeNPQ/0KUAcrctAMTL3Bu1Kq7+eSBFV6gvS2T1tpoo JDH6yJxs3meLzn74LcR8/IyCDknZs55zjwZzCH1u6ZYEMZiA0BzOICvqLUNqwLdKVx2J 7DTMLTaHHBtj6VfGJCY+LZjZcREj9zbVkLv1N9Eh4E34zj9rYFITW4WhJ6exzChnVuZP g11sVkfUtTyhHNodHDgkXARFrZD/zySOVlfmRIStH+dxeT+NULn/om7zlnTctI7WmiNl 5RYA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=rKVmbmNzkaxn/8C3Iw6aDQpVn2ZuFWYfmTfStr4MBnY=; b=GB3+mGbsWnDRWBwKSZcdJdRAEbz+tgHcIZzlVG0YZ6Jtd55HEkXc1F6UFm+XfDbl49 FukFYRstCjZXqLC+xTSMZIdflYScz456XbM2Zjj0c5MCqRqj0ig+U2U2DeOuU0ezxW1G PIsr4IJ61zukRLWi4xdsYUAzody35v77SjycIRivFghCkCyQ6/RTWiZp30G9SLWU9PGT Uso4q/J6lEHZ4YYolcb7jcXVl145aTTIAv/vqHufMnwNLWgPFFfThjKk33pjqXpGRswu POl22focVteboNdLIXJyHloolPHBLm7Q07NUiCcPHg3l/LsqSAVZe9uiebkIrlRM4C6N GSZQ== X-Gm-Message-State: AOAM532aEWSfpg5ELgc98KCpcE1g+lzl3tHpIqmBLKEwxprb8AH/6ehl nQl7jm/mpVLgxF85jzO7JBHSxAvmfp2N6NrSSitdMtCGv3zEitWeCYc/WKKmq8scbe4xIrqFhDc CoIzPkhTcixJvbD73JTzkSUjdGKP6QPACw73K88sirxGFP/aXsLr0qupJT7bPYm4= X-Google-Smtp-Source: ABdhPJx2Fcd+DMRYly6MS9NlmYerocJ63MQ86xRUUNqahU48ae3a3kw3kj+yOhLJ6GULscB5C+nrUQ== X-Received: by 2002:a17:902:8d87:: with SMTP id v7mr15249338plo.153.1589796254157; Mon, 18 May 2020 03:04:14 -0700 (PDT) Received: from fw.dtucker.net (2001-44b8-3110-fb00-0000-0000-0000-0248.static.ipv6.internode.on.net. [2001:44b8:3110:fb00::248]) by smtp.gmail.com with ESMTPSA id k24sm8331507pfk.134.2020.05.18.03.04.12 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 May 2020 03:04:13 -0700 (PDT) Received: from gate.dtucker.net (2001-44b8-3110-fb01-0000-0000-0000-0001.static.ipv6.internode.on.net [2001:44b8:3110:fb01::1]) by fw.dtucker.net (OpenSMTPD) with ESMTP id 02394daf for ; Mon, 18 May 2020 20:04:02 +1000 (AEST) Received: from gate.dtucker.net (localhost.localdomain [127.0.0.1]) by gate.dtucker.net (8.15.2/8.15.2) with ESMTP id 04IA41AG029445; Mon, 18 May 2020 20:04:01 +1000 Received: (from dtucker@localhost) by gate.dtucker.net (8.15.2/8.15.2/Submit) id 04IA41DD029439; Mon, 18 May 2020 20:04:01 +1000 From: Darren Tucker To: git@vger.kernel.org Cc: Darren Tucker Subject: [PATCH 1/7] Redirect grep's stderr top null too. Date: Mon, 18 May 2020 20:03:50 +1000 Message-Id: <20200518100356.29292-1-dtucker@dtucker.net> X-Mailer: git-send-email 2.21.3 MIME-Version: 1.0 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Prevents pollution of configure output on platforms that don't have grep -a. Signed-off-by: Darren Tucker --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 66aedb9288..4effc82b76 100644 --- a/configure.ac +++ b/configure.ac @@ -526,7 +526,7 @@ if test -n "$ASCIIDOC"; then esac fi -if grep -a ascii configure.ac >/dev/null; then +if grep -a ascii configure.ac >/dev/null 2>&1; then AC_MSG_RESULT([Using 'grep -a' for sane_grep]) SANE_TEXT_GREP=-a else From patchwork Mon May 18 10:03:51 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Darren Tucker X-Patchwork-Id: 11555145 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 28341739 for ; Mon, 18 May 2020 10:04:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 1111520826 for ; Mon, 18 May 2020 10:04:16 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=dtucker-net.20150623.gappssmtp.com header.i=@dtucker-net.20150623.gappssmtp.com header.b="sMSYa8hL" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726693AbgERKEN (ORCPT ); Mon, 18 May 2020 06:04:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726130AbgERKEM (ORCPT ); Mon, 18 May 2020 06:04:12 -0400 Received: from mail-pg1-x52d.google.com (mail-pg1-x52d.google.com [IPv6:2607:f8b0:4864:20::52d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F3C44C061A0C for ; Mon, 18 May 2020 03:04:11 -0700 (PDT) Received: by mail-pg1-x52d.google.com with SMTP id t11so4591771pgg.2 for ; Mon, 18 May 2020 03:04:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dtucker-net.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=lYYyBshx07KEO/WLv1t4JupuYBVvauhB8mdz6AGsw6w=; b=sMSYa8hLqjQmfrvzSk3R8hlzQ5ikZcgBwgEhGEuwqiXJd3lgOLLTIM2zL59fjlnuNs T0xuAk7naa20fn9lXKawaJF2++LgkmbgeUkrdzdSFbd0c6Dhya8c1k+qbHeA/taCiRS0 1ZCZQWAjlRlLsHRH+XViVoobPQeP397xX3WM7eJqHEhwRWRVQHAkLd9CD2FjwsrJhliq kouXe1vQ9/LMbg7On3H9Zf1T8nrz/3yMOOF4PMG63xX2lHCNjJHqi3J+K7R7soFnBVQV iyejy+J5yW61AY3cS3Ky1vuQ47+JQrdd3FzbbaRUpxgConVsx4CRfA/DB0g+iGn9+mTf mIMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=lYYyBshx07KEO/WLv1t4JupuYBVvauhB8mdz6AGsw6w=; b=R9lbGkpn3mf7D2rIR1Mq2Gkz8HizJ6NPXie6bJt9AZpaT1tGLuV+zK3X5h4xohwJKQ LFpwKNdsZTugrg4yDk/mCrqR6xJ6UY0h835EKQx3BcBskrZpse8cXnkdQ+9BNmgo1xis I+unYa+R1eGtiu+1PXVzFYM9mmXRviAMmOk+sfVG/EIUNyUuBquvFo+go7Oe/uyoDfcZ L6zxzk9IKiqNrNeQlDBgw8AXjsE3n5jS7WrHeygEOEBCrWqHTxN9BVLp9Nc9QkSnP5WS 4NJUn+xd6/OpBEFamig6lprCc7K7NJhukAW1aqqOFFDPQfazMXYaHhFWmN5biJCXNhjJ kDUQ== X-Gm-Message-State: AOAM533DNqgk28Cir9uetzsgsos2LLUGuvKcEAKWyRiZv7O9NQUqHv2d YgDhby0mgoKVLA70Kr72p1Jw8lEs/61POdq3qTiYK9ZEljWIQT1xUPIOrpwA2wbPVW52/ys4Rob zojn4oC9o7+DrZROBiaKJQEXTfjHp9DyQXWWWo3FUvfTXWi+i8T/lNLqw6VpTFzk= X-Google-Smtp-Source: ABdhPJz/RF/Ko80LYJjyNXdO+sN8DEsqfvxXL5IsA6Qt3DdhW1UEoDK8k7RHFh7GtNKDwGCwu+ZvRQ== X-Received: by 2002:a62:e117:: with SMTP id q23mr17161362pfh.188.1589796251072; Mon, 18 May 2020 03:04:11 -0700 (PDT) Received: from fw.dtucker.net (ppp59-167-129-32.static.internode.on.net. [59.167.129.32]) by smtp.gmail.com with ESMTPSA id cc8sm8094167pjb.11.2020.05.18.03.04.09 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 May 2020 03:04:10 -0700 (PDT) Received: from gate.dtucker.net (2001-44b8-3110-fb01-0000-0000-0000-0001.static.ipv6.internode.on.net [2001:44b8:3110:fb01::1]) by fw.dtucker.net (OpenSMTPD) with ESMTP id 56b53342 for ; Mon, 18 May 2020 20:04:02 +1000 (AEST) Received: from gate.dtucker.net (localhost.localdomain [127.0.0.1]) by gate.dtucker.net (8.15.2/8.15.2) with ESMTP id 04IA41YN029454; Mon, 18 May 2020 20:04:01 +1000 Received: (from dtucker@localhost) by gate.dtucker.net (8.15.2/8.15.2/Submit) id 04IA41t5029447; Mon, 18 May 2020 20:04:01 +1000 From: Darren Tucker To: git@vger.kernel.org Cc: Darren Tucker Subject: [PATCH 2/7] Define NO_PREAD for HPUX 11.11 and 11.00. Date: Mon, 18 May 2020 20:03:51 +1000 Message-Id: <20200518100356.29292-2-dtucker@dtucker.net> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200518100356.29292-1-dtucker@dtucker.net> References: <20200518100356.29292-1-dtucker@dtucker.net> MIME-Version: 1.0 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Tested on 11.11 but probably needed for 11.00 too. Signed-off-by: Darren Tucker --- config.mak.uname | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/config.mak.uname b/config.mak.uname index 5ad43c80b1..e864e04346 100644 --- a/config.mak.uname +++ b/config.mak.uname @@ -368,9 +368,14 @@ ifeq ($(uname_S),HP-UX) NO_SYS_SELECT_H = YesPlease SNPRINTF_RETURNS_BOGUS = YesPlease NO_NSEC = YesPlease + ifeq ($(uname_R),B.11.11) + NO_PREAD = YesPlease + CFLAGS = -D_REENTRANT + endif ifeq ($(uname_R),B.11.00) NO_INET_NTOP = YesPlease NO_INET_PTON = YesPlease + NO_PREAD = YesPlease endif ifeq ($(uname_R),B.10.20) # Override HP-UX 11.x setting: From patchwork Mon May 18 10:03:52 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Darren Tucker X-Patchwork-Id: 11555147 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3F522739 for ; Mon, 18 May 2020 10:04:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 245B620825 for ; Mon, 18 May 2020 10:04:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=dtucker-net.20150623.gappssmtp.com header.i=@dtucker-net.20150623.gappssmtp.com header.b="J/Bdm1ik" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726758AbgERKER (ORCPT ); Mon, 18 May 2020 06:04:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44382 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726705AbgERKEO (ORCPT ); Mon, 18 May 2020 06:04:14 -0400 Received: from mail-pg1-x541.google.com (mail-pg1-x541.google.com [IPv6:2607:f8b0:4864:20::541]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF26FC061A0C for ; Mon, 18 May 2020 03:04:13 -0700 (PDT) Received: by mail-pg1-x541.google.com with SMTP id f23so4592263pgj.4 for ; Mon, 18 May 2020 03:04:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dtucker-net.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=vWrjir7K2/mpy1WZhJAKGYkUh9E1XAV66xmDJoBNslg=; b=J/Bdm1ikrYi8DDWAf8cerx4Icw4hLAiPn1gH3uNDp1vqdm02You5I7rV7G50OYFzm6 Gec8CgcmGNvHQq5vyzdUkRyDArMHxP+CBMu+iXPwdPj9cKNs93P6+Zlzi0GIimnKmTyX X0AcUTMhfA+ML4IjZJP8YkREZgdbNjcqVYzR1Z3cWJXw6til0DvFtMoAh0edUM9K/vsw spswiaeJbyPv+zABiFiUBvKXSAlXzSc9Zu8HnpFmcosGv//1B384rZMznZ34AytVr4Nh c+jhkXI7wGycJ0nOkHVUO5fQoEv8PMU1AsuubyO6z1OObA8Gc5nDGKNdJR9fiVpuKR6j f4nA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=vWrjir7K2/mpy1WZhJAKGYkUh9E1XAV66xmDJoBNslg=; b=FcYGDqJHr4X2+dLLntv9lHmYCjy8wSTBl0InUEiN+htiz9GMiZlkXY+h1+tvJFiL7n XzCwQO+dsYZGejXYWsN0OkWIYy/fj5+uvvWVXYAXdsrR8moHVATaLzB0wc9UsplPxCC6 zR4ZDx3Pqdmime+w1I5vUT1HohbLWpwC7dBU2HzRVkPuJnfisCfBwjyud+pnGyTOcoNJ qWMZH2P3zIkV7e4m1WnsRd60Me5aSdlKzeJ85FYoZlC9m9VdzwaNLEwB32QOoUBTOicC zIcxanCdkbYK6Gnu8RZ+Ipyuashr5fekDw/GGU+1llBUSO+xiZc6kMTiaSis3Zj/MunQ m+KA== X-Gm-Message-State: AOAM532modB049YyIUdJJUVrCpLXnl50ZvoiQmw3rvj/f3JHnrD/eFUF 7CFONmge1v9W+TMJRdPL0hIfDy4HS1tLHu/mzNumiNpvt+b8taSQ866AOHjLns+v7Y4tyzS4Tyk j5pVaqJp+LoqISFAccJd1uqr49o1yjYlAbya0Hnbiz7fLZcx1LKbYIEDa8WBa2bM= X-Google-Smtp-Source: ABdhPJwbrmhMSuZvP6+NzmN1awOTnveDZWHG63d7Y6SFx2vj2mqv5vJPVthfXXzoPXkO9qU3s8CI+Q== X-Received: by 2002:a63:c04a:: with SMTP id z10mr13998443pgi.430.1589796252861; Mon, 18 May 2020 03:04:12 -0700 (PDT) Received: from fw.dtucker.net (ppp59-167-129-32.static.internode.on.net. [59.167.129.32]) by smtp.gmail.com with ESMTPSA id cc8sm8094167pjb.11.2020.05.18.03.04.11 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 May 2020 03:04:12 -0700 (PDT) Received: from gate.dtucker.net (2001-44b8-3110-fb01-0000-0000-0000-0001.static.ipv6.internode.on.net [2001:44b8:3110:fb01::1]) by fw.dtucker.net (OpenSMTPD) with ESMTP id 877fce63 for ; Mon, 18 May 2020 20:04:02 +1000 (AEST) Received: from gate.dtucker.net (localhost.localdomain [127.0.0.1]) by gate.dtucker.net (8.15.2/8.15.2) with ESMTP id 04IA413e029463; Mon, 18 May 2020 20:04:01 +1000 Received: (from dtucker@localhost) by gate.dtucker.net (8.15.2/8.15.2/Submit) id 04IA41Rh029457; Mon, 18 May 2020 20:04:01 +1000 From: Darren Tucker To: git@vger.kernel.org Cc: Darren Tucker Subject: [PATCH 3/7] Test for strtoull in configure. Date: Mon, 18 May 2020 20:03:52 +1000 Message-Id: <20200518100356.29292-3-dtucker@dtucker.net> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200518100356.29292-1-dtucker@dtucker.net> References: <20200518100356.29292-1-dtucker@dtucker.net> MIME-Version: 1.0 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org It's already used in compat/strtoimax.c Signed-off-by: Darren Tucker --- configure.ac | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/configure.ac b/configure.ac index 4effc82b76..14e09b04b6 100644 --- a/configure.ac +++ b/configure.ac @@ -1158,6 +1158,12 @@ AC_CHECK_TYPE(uintmax_t, ]) GIT_CONF_SUBST([NO_UINTMAX_T]) # +# Define NO_STRTOULL if you don't have strtoull in the C library. +GIT_CHECK_FUNC(strtoull, +[NO_STRTOULL=], +[NO_STRTOULL=YesPlease]) +GIT_CONF_SUBST([NO_STRTOULL]) +# # Define NO_STRTOUMAX if you don't have strtoumax in the C library. GIT_CHECK_FUNC(strtoumax, [NO_STRTOUMAX=], From patchwork Mon May 18 10:03:53 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Darren Tucker X-Patchwork-Id: 11555139 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 81383739 for ; Mon, 18 May 2020 10:04:11 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5EAEE20826 for ; Mon, 18 May 2020 10:04:11 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=dtucker-net.20150623.gappssmtp.com header.i=@dtucker-net.20150623.gappssmtp.com header.b="HAYU0IjF" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726610AbgERKEK (ORCPT ); Mon, 18 May 2020 06:04:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44364 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726130AbgERKEI (ORCPT ); Mon, 18 May 2020 06:04:08 -0400 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4A254C061A0C for ; Mon, 18 May 2020 03:04:08 -0700 (PDT) Received: by mail-pg1-x543.google.com with SMTP id u35so4585930pgk.6 for ; Mon, 18 May 2020 03:04:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dtucker-net.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=fAjg/Yp0mAZPWl24JjXXSq+zcbC9DZHqTmFs2u+lT+w=; b=HAYU0IjFZSOnS22tD38nZxN0p5kRJfsBX5skyslX7VX72IcsPJHd/Y/r5EhoELoNEk TaTsPninKK24SneP5f9xUV3Dvp2m8diJzBX3LBB4GnXGgsUvALm5MLDcC1oHN9WDft6o NfokWm39QXQqQDO1Py0fJ096pql38FspUtb3eQkX5OAFx72cSAbUnBQ2dU0IG++zK3G3 L/r8c7AfEm6eOt/miQrlR7oTHpBrFlf0eQ0nYuA/bNDWMT5Eq/yj1U6BHRw7YrZxLDEW qWbqIl84XEqJ9v6mJvHUX4AuPI1QJFiar1PANvAxOsJYzAi2sgheyBoqvZn28BD5ZJex 6zPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=fAjg/Yp0mAZPWl24JjXXSq+zcbC9DZHqTmFs2u+lT+w=; b=Ht3DOWlZm+/54T+I3M7jbjH/lJReRHEdUmCYKZOFeT3ahOV6PgUTyct2YjkZhFOLPr J+Szd5C92VB/hcp8x7Rfnfe7tNkJbdkJeYbVRFqC9esukxqPasOKPgQUzRIrbhLR8BYz Z3iuHB67V8QzAbmYmUa8FuT4DLq1TWreXDgRf+uvk7+u9bXHQeF9I7S8ymXEf9ROSjz8 6Hun2GiA6iyKj+C1zapCwRmhVcINdtytxgmKu8zYT77r3GYnHTa0AhnfgijmslgBq0fw A8riFdPmk6L/YbBJo1wQdCoLUDZerQ6pVojRAO9TrFVNXS0oM5yBhXLp2ByNIKNUZuN7 +deQ== X-Gm-Message-State: AOAM532LrVPgrsTb5JaIJWy2WazPPYWTOZb3PH9RYoW7dxUcEdcinhky zkUsvmy3cKqsgTsJZ5ze1M0gvF0xA7NBKvAZwSpiPcuEWyZT8nvSUVRpKZKF/6ykt7DYYlVM7zH cppNDCzbbCoCD9n2hfZsoHXwevR93BfnfJgUPNvyNbONhYg27Vwg032L1sXhVQwc= X-Google-Smtp-Source: ABdhPJyZ8OE3ErFvkoU3rN/THy1/Yy7dX2nf/dKM2OaloVrL5f0kQ2qU6XJAOfxMyzJwA+i0ZagQVQ== X-Received: by 2002:a65:66d5:: with SMTP id c21mr13843886pgw.155.1589796247391; Mon, 18 May 2020 03:04:07 -0700 (PDT) Received: from fw.dtucker.net (ppp59-167-129-32.static.internode.on.net. [59.167.129.32]) by smtp.gmail.com with ESMTPSA id cc8sm8094167pjb.11.2020.05.18.03.04.05 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 May 2020 03:04:06 -0700 (PDT) Received: from gate.dtucker.net (2001-44b8-3110-fb01-0000-0000-0000-0001.static.ipv6.internode.on.net [2001:44b8:3110:fb01::1]) by fw.dtucker.net (OpenSMTPD) with ESMTP id 3a372151 for ; Mon, 18 May 2020 20:04:02 +1000 (AEST) Received: from gate.dtucker.net (localhost.localdomain [127.0.0.1]) by gate.dtucker.net (8.15.2/8.15.2) with ESMTP id 04IA41hA029473; Mon, 18 May 2020 20:04:01 +1000 Received: (from dtucker@localhost) by gate.dtucker.net (8.15.2/8.15.2/Submit) id 04IA4116029466; Mon, 18 May 2020 20:04:01 +1000 From: Darren Tucker To: git@vger.kernel.org Cc: Darren Tucker Subject: [PATCH 4/7] Use strtoumax instead of strtoull. Date: Mon, 18 May 2020 20:03:53 +1000 Message-Id: <20200518100356.29292-4-dtucker@dtucker.net> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200518100356.29292-1-dtucker@dtucker.net> References: <20200518100356.29292-1-dtucker@dtucker.net> MIME-Version: 1.0 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org strtoumax is in the compat library so this works on platforms that don't have a native strtoull. Signed-off-by: Darren Tucker --- t/helper/test-progress.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/t/helper/test-progress.c b/t/helper/test-progress.c index 5d05cbe789..3e9eb2abe3 100644 --- a/t/helper/test-progress.c +++ b/t/helper/test-progress.c @@ -47,7 +47,7 @@ int cmd__progress(int argc, const char **argv) char *end; if (skip_prefix(line.buf, "progress ", (const char **) &end)) { - uint64_t item_count = strtoull(end, &end, 10); + uint64_t item_count = strtoumax(end, &end, 10); if (*end != '\0') die("invalid input: '%s'\n", line.buf); display_progress(progress, item_count); @@ -55,10 +55,10 @@ int cmd__progress(int argc, const char **argv) (const char **) &end)) { uint64_t byte_count, test_ms; - byte_count = strtoull(end, &end, 10); + byte_count = strtoumax(end, &end, 10); if (*end != ' ') die("invalid input: '%s'\n", line.buf); - test_ms = strtoull(end + 1, &end, 10); + test_ms = strtoumax(end + 1, &end, 10); if (*end != '\0') die("invalid input: '%s'\n", line.buf); progress_test_ns = test_ms * 1000 * 1000; From patchwork Mon May 18 10:03:54 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Darren Tucker X-Patchwork-Id: 11555141 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E241E912 for ; Mon, 18 May 2020 10:04:12 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id C89F92081A for ; Mon, 18 May 2020 10:04:12 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=dtucker-net.20150623.gappssmtp.com header.i=@dtucker-net.20150623.gappssmtp.com header.b="sb7tkmJT" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726669AbgERKEL (ORCPT ); Mon, 18 May 2020 06:04:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726130AbgERKEK (ORCPT ); Mon, 18 May 2020 06:04:10 -0400 Received: from mail-pg1-x543.google.com (mail-pg1-x543.google.com [IPv6:2607:f8b0:4864:20::543]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3357EC061A0C for ; Mon, 18 May 2020 03:04:10 -0700 (PDT) Received: by mail-pg1-x543.google.com with SMTP id s10so2333591pgm.0 for ; Mon, 18 May 2020 03:04:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dtucker-net.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=CqXlW24KF6Ee6VfFgvPfj3klUr+M3G+4kLiV4Rm+vGM=; b=sb7tkmJTRlBCFzPyT/lEoVKjY0fKfD9zq/LnbPzmELP69KjlI1oiMxOwcueZH+xorT 3WS156AxdUcgfunA1+oHmKxetlhg85BPJFr4AjHjfMCWIx3CUIe2/12Fb8wEKpckJUn2 DPzHyZotDdqwHreRL3CwQzlPjgCGd/SjXNbYxnMz6KMUuEappRHXfoZBCzUV/hswjws0 /ICHClGO2lJqsZVJTrqxINWtWLVMujKPOWLiATXXPBQnqtpr0JLwcGPJB6/OPTUXBLK/ jH2jJfc1mtA+qRY8Xul255eUh7x473zjnNtnVv6bVwmsJ8sn6j8kkxgVEaMJUSo8Xgw1 /YCw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=CqXlW24KF6Ee6VfFgvPfj3klUr+M3G+4kLiV4Rm+vGM=; b=XThbfa8rEpYLX2HmbH2e08qQXy6BaQ+9Rt6ZTaaZAA+OMgHcP3wJHdcW1RW8EU+pFr aUzSIckKeuxMFBEBfvpYIlK7P/r0WRg223AK7GUg+Dfn4/hI9gqBzeOr4iKkEVaIGQqp HGSQo8xRqhA82dh0SeL0ixBPtn2rj6Ll5puMR/XBPzOdA+78jxFkUynfPs26jKNZW2LY YvzDsE/DemvY+agNBcqo29l5ye/fiOafm2ciUpPH7NKkbqOo17aNXKBOE85G6dAyje1+ JI4Y3yrmW0EPFhGULBCyaOPY46VFqu601vVWUJazaSr0nWPh8ekvxmuIOQJq7tDrsrQJ KYlA== X-Gm-Message-State: AOAM531iwsYCv9vww3zjxCXxJNOrHKZ11oOR6GNVeU7I04mfUvyv+AI6 /fx7i60fnpMDS8egAg5YsIb4RR57udxXRL8kDb2v7Xpb3LRVYNHudhySyStwueBT+yESJoWaAgM zkeW9EOFi5evBnjHStq9IvzAnTYQU91vFzac2eylHU+9ZjR8CPJimb4BJJFqPJrY= X-Google-Smtp-Source: ABdhPJy3r7j1RYJyGVQch2R43oTXMn5TiBXivZjUzjuGRngKd8ob8sve+oH5X+8ncnFNcoDzjzmCng== X-Received: by 2002:a05:6a00:1490:: with SMTP id v16mr9268493pfu.173.1589796249336; Mon, 18 May 2020 03:04:09 -0700 (PDT) Received: from fw.dtucker.net (ppp59-167-129-32.static.internode.on.net. [59.167.129.32]) by smtp.gmail.com with ESMTPSA id cc8sm8094167pjb.11.2020.05.18.03.04.07 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 May 2020 03:04:08 -0700 (PDT) Received: from gate.dtucker.net (2001-44b8-3110-fb01-0000-0000-0000-0001.static.ipv6.internode.on.net [2001:44b8:3110:fb01::1]) by fw.dtucker.net (OpenSMTPD) with ESMTP id ed0ce908 for ; Mon, 18 May 2020 20:04:02 +1000 (AEST) Received: from gate.dtucker.net (localhost.localdomain [127.0.0.1]) by gate.dtucker.net (8.15.2/8.15.2) with ESMTP id 04IA41Zb029480; Mon, 18 May 2020 20:04:01 +1000 Received: (from dtucker@localhost) by gate.dtucker.net (8.15.2/8.15.2/Submit) id 04IA41lE029476; Mon, 18 May 2020 20:04:01 +1000 From: Darren Tucker To: git@vger.kernel.org Cc: Darren Tucker Subject: [PATCH 5/7] Define LLONG_MAX/MIN etc if not already defined. Date: Mon, 18 May 2020 20:03:54 +1000 Message-Id: <20200518100356.29292-5-dtucker@dtucker.net> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200518100356.29292-1-dtucker@dtucker.net> References: <20200518100356.29292-1-dtucker@dtucker.net> MIME-Version: 1.0 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Signed-off-by: Darren Tucker --- git-compat-util.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/git-compat-util.h b/git-compat-util.h index 8ba576e81e..aa221eba1b 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -127,6 +127,22 @@ /* Approximation of the length of the decimal representation of this type. */ #define decimal_length(x) ((int)(sizeof(x) * 2.56 + 0.5) + 1) +#ifndef SIZE_MAX +#define SIZE_MAX ((size_t)maximum_signed_value_of_type(size_t)) +#endif + +#ifndef LLONG_MIN +#define LLONG_MIN ((long long)minimum_signed_value_of_type(long long)) +#endif + +#ifndef LLONG_MAX +#define LLONG_MAX ((long long)maximum_signed_value_of_type(long long)) +#endif + +#ifndef ULLONG_MAX +#define ULLONG_MAX ((unsigned long long)maximum_unsigned_value_of_type(unsigned long long)) +#endif + #if defined(__sun__) /* * On Solaris, when _XOPEN_EXTENDED is set, its header file From patchwork Mon May 18 10:03:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Darren Tucker X-Patchwork-Id: 11555143 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1BF94912 for ; Mon, 18 May 2020 10:04:15 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 0523620825 for ; Mon, 18 May 2020 10:04:15 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=dtucker-net.20150623.gappssmtp.com header.i=@dtucker-net.20150623.gappssmtp.com header.b="CEMMd23N" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726709AbgERKEO (ORCPT ); Mon, 18 May 2020 06:04:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726676AbgERKEN (ORCPT ); Mon, 18 May 2020 06:04:13 -0400 Received: from mail-pj1-x1041.google.com (mail-pj1-x1041.google.com [IPv6:2607:f8b0:4864:20::1041]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B7056C05BD09 for ; Mon, 18 May 2020 03:04:12 -0700 (PDT) Received: by mail-pj1-x1041.google.com with SMTP id 5so1703475pjd.0 for ; Mon, 18 May 2020 03:04:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dtucker-net.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=J0vUfOdbd0WspuKYL+x/DNmSVCpT4NTQ/1rV7n59hWc=; b=CEMMd23NF0oWwu7ZQtyKVfXtv8NArnZTXdNPD43NTkQuZHkX2En/6ACjJ8/5pgCoLi hlP7cAp6Ff/jkSj85xG8HWyXpkUCcRfU4smK5AoYCHLtHvzaGgmLkbyitH5kfqQKKDRc OgW8dcJ+oTrP8U/Dx2hB5DILP6QuVeSzzlHvK7rzQjqY5FeEg2XaeC0nF8thRK9yOhgY zOUaHIJwJJXcTR+e98z8wj/edB94xKxxaPDA69quv/m9UEFX5GdMDczUUiRHeD3seQOl HqYhZkysudPel5gR+8SmgK75mXnYDs5jSp4cVjWlSZelweZ9mGrZbWnKtphz0mVfSGv1 o2fg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=J0vUfOdbd0WspuKYL+x/DNmSVCpT4NTQ/1rV7n59hWc=; b=TYgIbguoIviDN67uIjILpEJRHgChIop6kkwyarhu00ZOaZT1J/buk1SuVpf5E0bizP d2NP8fTBcmZiuQP1kQZFOgnHklunc1CFz1pCn6VQ7TbrqBvfrFAejcgrAGjlTXVEodpF aSE0qwc77fZYAXCTd4L5cm8sCPT77cAF6SMMTAxJmDOl9zXnRguQ9WbP2N22y4tWjBMe OaAgHxEJuRBSns+iZUcjgPRUkNpDD5IBYanS1VwaqUN0t1X60VUzyeVo/56X3Uthr+1+ aZzCfMJ//0VNa4dhVUX/o6yMXUpWSUSkrurENwzbL3S4NkCZ0V8CBgaNX+8a2mEBksDV ECZQ== X-Gm-Message-State: AOAM533qFmdC6NQhBRtf/BRaAIzT23HyvUEQwSInzq72eIa9zM9A5Tqu n6osZwp2WxneSsY2A5nL1ktij4TITVBXl25DTytQdptCJoXlE3UI6xTxEz19TtLbYyWIzwdQKDr WDQFeX+cQdhRwo2/99lt/oYxccuvmMsPin7cF3YaX9S6B0LytMLqfkrAit1gW7HE= X-Google-Smtp-Source: ABdhPJyMu0mknLqfnE2Ut0uJAc9NK3KrMnixvgn/5G282RkxZAU3VA3KDAQStvyvgGtpItUMwkG08w== X-Received: by 2002:a17:90b:238d:: with SMTP id mr13mr10975230pjb.236.1589796251764; Mon, 18 May 2020 03:04:11 -0700 (PDT) Received: from fw.dtucker.net (2001-44b8-3110-fb00-0000-0000-0000-0248.static.ipv6.internode.on.net. [2001:44b8:3110:fb00::248]) by smtp.gmail.com with ESMTPSA id k24sm8331507pfk.134.2020.05.18.03.04.10 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 May 2020 03:04:11 -0700 (PDT) Received: from gate.dtucker.net (2001-44b8-3110-fb01-0000-0000-0000-0001.static.ipv6.internode.on.net [2001:44b8:3110:fb01::1]) by fw.dtucker.net (OpenSMTPD) with ESMTP id 5d6de44d for ; Mon, 18 May 2020 20:04:02 +1000 (AEST) Received: from gate.dtucker.net (localhost.localdomain [127.0.0.1]) by gate.dtucker.net (8.15.2/8.15.2) with ESMTP id 04IA413X029489; Mon, 18 May 2020 20:04:01 +1000 Received: (from dtucker@localhost) by gate.dtucker.net (8.15.2/8.15.2/Submit) id 04IA412Y029483; Mon, 18 May 2020 20:04:01 +1000 From: Darren Tucker To: git@vger.kernel.org Cc: Darren Tucker Subject: [PATCH 6/7] Check if strtoumax is a macro (eg HP-UX 11.11). Date: Mon, 18 May 2020 20:03:55 +1000 Message-Id: <20200518100356.29292-6-dtucker@dtucker.net> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200518100356.29292-1-dtucker@dtucker.net> References: <20200518100356.29292-1-dtucker@dtucker.net> MIME-Version: 1.0 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Signed-off-by: Darren Tucker --- configure.ac | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 14e09b04b6..87a39c5ae0 100644 --- a/configure.ac +++ b/configure.ac @@ -1164,10 +1164,16 @@ GIT_CHECK_FUNC(strtoull, [NO_STRTOULL=YesPlease]) GIT_CONF_SUBST([NO_STRTOULL]) # -# Define NO_STRTOUMAX if you don't have strtoumax in the C library. +# Define NO_STRTOUMAX if you don't have strtoumax in the C library +# or as a macro in inttypes.h. GIT_CHECK_FUNC(strtoumax, [NO_STRTOUMAX=], -[NO_STRTOUMAX=YesPlease]) +[ + AC_CHECK_DECL(strtoumax, + [NO_STRTOUMAX=], + [NO_STRTOUMAX=YesPlease], + [#include ]) +]) GIT_CONF_SUBST([NO_STRTOUMAX]) # # Define NO_SETENV if you don't have setenv in the C library. From patchwork Mon May 18 10:03:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Darren Tucker X-Patchwork-Id: 11555151 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 94B08912 for ; Mon, 18 May 2020 10:04:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 7C60420826 for ; Mon, 18 May 2020 10:04:21 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=dtucker-net.20150623.gappssmtp.com header.i=@dtucker-net.20150623.gappssmtp.com header.b="ODcVLzcd" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726854AbgERKEU (ORCPT ); Mon, 18 May 2020 06:04:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44398 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726739AbgERKEQ (ORCPT ); Mon, 18 May 2020 06:04:16 -0400 Received: from mail-pg1-x533.google.com (mail-pg1-x533.google.com [IPv6:2607:f8b0:4864:20::533]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1D437C061A0C for ; Mon, 18 May 2020 03:04:16 -0700 (PDT) Received: by mail-pg1-x533.google.com with SMTP id n11so4578770pgl.9 for ; Mon, 18 May 2020 03:04:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dtucker-net.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=6TrMpi371lGQtdTKRmHEfosyMBpd+gtetYujo3m36oA=; b=ODcVLzcdQsUeYdo96ZB0N14TUdIC5GYLjppqJ7x7n7Vgq8HaAE4ROc0CAkPbOLlSnz B9fmXYRn4CXNIuMz5irIK47b3t8jKbGr+8cxEB8l1MWpyLfVGkbj4adgz3T39teZRR+u aCTuY0zL+xEySglZYe1mehaZqTrFQf6AsyQmA7orDEQZc19BqdbF4Gffa9ZGn49VwbnO rdIr0O7xQb5pER22L9V8HiOrOhGcwfJGncWgauIZbzTxAg+EvOaw2cFoSkjf2vtUBjlF CrVp7k+nZSxg2JlDDRyKm/lUdZLdfZh4jePTruqW5ef4ukADgqfrdBwvLqMANtufpSJA IxbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=6TrMpi371lGQtdTKRmHEfosyMBpd+gtetYujo3m36oA=; b=aTBIqW4b6tvGpfCKBkP/kYp8QNLjiIjV+st4xS4P5EH1r+a5ITfL2REa6//+lRapfx JI8w+QxMkwMoYG3VzS0j1CNcLjUgNP4lCdrpyDowcSVWWkvhRUSHgAQSZNDAccGt4zSC vED2Z49vu0t6uEiX+zlUafLNFT0ZrtrGDCE64PIuxPkkXCGhgzpmT+GNOEiCcRnXTShh 8mvZRy/fv8pbs51ArqAKF04QA8uxLt1n5aVMS3Sf5Bf2/yFbv7u3DpSZY9r13/Tmw4An i4sniHydWohqqx/d7uthy1btLLyU7Tqz69TB6jHA5iVW58mFcOcDiFWgvzOy537/eMqN 3gvg== X-Gm-Message-State: AOAM532n3akSgev1xj8adBsnrLego4ga9iq+kAJvBkeJQkxxN6am7YDj hGubLgCy0grvKyt2NbBDcaJVH2I6BpqoRhzZ3CwyPVwvos6TSaHaDz6UnmnUoutazIxzmmGAW7L zR9ZWab2cltvsn6tFtpzQvGC8dt5rfV2wO6/w3I8dCa/bScYS8w1egNq2jturHFo= X-Google-Smtp-Source: ABdhPJx7+yARI0plUxReFvR53lqMM7/U5ttqgUSpHMnEuzKOrtbBtD20x0fLnvPpJb3facQu7s16/Q== X-Received: by 2002:a63:555c:: with SMTP id f28mr14609704pgm.80.1589796255224; Mon, 18 May 2020 03:04:15 -0700 (PDT) Received: from fw.dtucker.net (ppp59-167-129-32.static.internode.on.net. [59.167.129.32]) by smtp.gmail.com with ESMTPSA id k7sm7467966pga.87.2020.05.18.03.04.13 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 May 2020 03:04:14 -0700 (PDT) Received: from gate.dtucker.net (2001-44b8-3110-fb01-0000-0000-0000-0001.static.ipv6.internode.on.net [2001:44b8:3110:fb01::1]) by fw.dtucker.net (OpenSMTPD) with ESMTP id 9981a7d5 for ; Mon, 18 May 2020 20:04:02 +1000 (AEST) Received: from gate.dtucker.net (localhost.localdomain [127.0.0.1]) by gate.dtucker.net (8.15.2/8.15.2) with ESMTP id 04IA41CI029499; Mon, 18 May 2020 20:04:01 +1000 Received: (from dtucker@localhost) by gate.dtucker.net (8.15.2/8.15.2/Submit) id 04IA41mO029493; Mon, 18 May 2020 20:04:01 +1000 From: Darren Tucker To: git@vger.kernel.org Cc: Darren Tucker Subject: [PATCH 7/7] Define SCNuMAX if not already defined. Date: Mon, 18 May 2020 20:03:56 +1000 Message-Id: <20200518100356.29292-7-dtucker@dtucker.net> X-Mailer: git-send-email 2.21.3 In-Reply-To: <20200518100356.29292-1-dtucker@dtucker.net> References: <20200518100356.29292-1-dtucker@dtucker.net> MIME-Version: 1.0 Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Signed-off-by: Darren Tucker --- git-compat-util.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/git-compat-util.h b/git-compat-util.h index aa221eba1b..2bc468fbd0 100644 --- a/git-compat-util.h +++ b/git-compat-util.h @@ -342,6 +342,10 @@ typedef uintmax_t timestamp_t; #define TIME_MAX UINTMAX_MAX #define TIME_MIN 0 +#if !defined(SCNuMAX) && defined(SCNu64) +#define SCNuMAX SCNu64 +#endif + #ifndef PATH_SEP #define PATH_SEP ':' #endif