[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-tar] bug on Solaris 8 due to strtoumax not being declared in increm
From: |
Paul Eggert |
Subject: |
[Bug-tar] bug on Solaris 8 due to strtoumax not being declared in incremen.c |
Date: |
Sun, 06 Nov 2005 14:52:24 -0800 |
User-agent: |
Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux) |
tar/src/incremen.c now uses strtoumax, but it's not declared on
Solaris 8 so the code breaks when compiled for GCC on the sparc,
resulting in obscure "make check" failures. To work around the
problem I installed this patch to tar and paxutils.
2005-11-06 Paul Eggert <address@hidden>
* src/xheader.c (strtoimax, strtoumax): Remove decls; now done
in system.h.
* paxutils/lib/system.h (strtoimax, strtoumax): Declare if the system
headers don't.
Index: src/xheader.c
===================================================================
RCS file: /cvsroot/tar/tar/src/xheader.c,v
retrieving revision 1.30
diff -p -u -r1.30 xheader.c
--- src/xheader.c 17 Sep 2005 06:41:56 -0000 1.30
+++ src/xheader.c 6 Nov 2005 22:45:53 -0000
@@ -28,13 +28,6 @@
#include <fnmatch.h>
-#if !HAVE_DECL_STRTOIMAX && !defined strtoimax
-intmax_t strtoimax ();
-#endif
-#if !HAVE_DECL_STRTOUMAX && !defined strtoumax
-uintmax_t strtoumax ();
-#endif
-
static bool xheader_protected_pattern_p (char const *pattern);
static bool xheader_protected_keyword_p (char const *keyword);
static void xheader_set_single_keyword (char *) __attribute__ ((noreturn));
Index: paxutils/lib/system.h
===================================================================
RCS file: /cvsroot/paxutils/paxutils/lib/system.h,v
retrieving revision 1.4
diff -p -u -r1.4 system.h
--- paxutils/lib/system.h 22 Jun 2005 06:14:28 -0000 1.4
+++ paxutils/lib/system.h 6 Nov 2005 22:45:59 -0000
@@ -453,6 +453,13 @@ char *getenv ();
# include <inttypes.h>
#endif
+#if !HAVE_DECL_STRTOIMAX && !defined strtoimax
+intmax_t strtoimax ();
+#endif
+#if !HAVE_DECL_STRTOUMAX && !defined strtoumax
+uintmax_t strtoumax ();
+#endif
+
#include <intprops.h>
#define UINTMAX_STRSIZE_BOUND INT_BUFSIZE_BOUND (uintmax_t)
- [Bug-tar] bug on Solaris 8 due to strtoumax not being declared in incremen.c,
Paul Eggert <=