bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] libsh: Omit strtoimax if HAVE_STRTOIMAX


From: Ismael Luceno
Subject: [PATCH] libsh: Omit strtoimax if HAVE_STRTOIMAX
Date: Wed, 3 Jul 2024 05:21:11 +0200

Signed-off-by: Ismael Luceno <ismael@iodev.co.uk>
---
 lib/sh/strtoimax.c | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/lib/sh/strtoimax.c b/lib/sh/strtoimax.c
index 584fa0ba20f5..7deab27bd692 100644
--- a/lib/sh/strtoimax.c
+++ b/lib/sh/strtoimax.c
@@ -20,9 +20,9 @@
 
 /* Written by Paul Eggert.  Modified by Chet Ramey for Bash. */
 
-#if HAVE_CONFIG_H
-#  include <config.h>
-#endif
+#include <config.h>
+
+#if !HAVE_STRTOIMAX
 
 #if HAVE_INTTYPES_H
 #  include <inttypes.h>
@@ -111,3 +111,5 @@ main ()
   exit (0);
 }
 #endif
+
+#endif /* !HAVE_STRTOIMAX */
-- 
2.44.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]