tzcode standard C patch
Paul Eggert
eggert at twinsun.com
Wed Jul 26 04:48:19 UTC 2000
> From: Torsten Duwe [SMTP:duwe at caldera.de]
> Sent: Tuesday, July 25, 2000 8:35 AM
> attached you find the patch we at Caldera are using for quite a while
> now to compile the tzcode under Linux, namely with the GNU C library,
> version 2 and up.
Thanks for reporting this. You shouldn't need that patch; all you
should need to do is to compile with -DHAVE_STRERROR=1. That being
said, I think HAVE_STRERROR should default to 1 these days; strerror
has been in the C standard for more than a decade and I no longer have
access to any hosts that lack strerror.
Here's a proposed patch.
2000-07-25 Paul Eggert <eggert at twinsun.com>
* Makefile, private.h: HAVE_STRERROR now defaults to 1, since
strerror is now ubiquitous.
===================================================================
RCS file: RCS/Makefile,v
retrieving revision 2000.1.1.0
retrieving revision 2000.1.1.1
diff -pu -r2000.1.1.0 -r2000.1.1.1
--- Makefile 2000/04/19 05:01:31 2000.1.1.0
+++ Makefile 2000/07/26 04:39:14 2000.1.1.1
@@ -95,7 +95,7 @@ LDLIBS=
# -DHAVE_SETTIMEOFDAY=1 if settimeofday has just 1 arg (SVR4)
# -DHAVE_SETTIMEOFDAY=2 if settimeofday uses 2nd arg (4.3BSD)
# -DHAVE_SETTIMEOFDAY=3 if settimeofday ignores 2nd arg (4.4BSD)
-# -DHAVE_STRERROR=1 if `strerror' works
+# -DHAVE_STRERROR=0 if your system lacks the strerror function
# -DHAVE_SYMLINK=0 if your system lacks the symlink function
# -DHAVE_SYS_WAIT_H=0 if your compiler lacks a "sys/wait.h"
# -DLOCALE_HOME=\"path\" if locales are in "path", not "/usr/lib/locale"
===================================================================
RCS file: RCS/private.h,v
retrieving revision 1999.5.1.0
retrieving revision 1999.5.1.1
diff -pu -r1999.5.1.0 -r1999.5.1.1
--- private.h 2000/04/19 05:01:31 1999.5.1.0
+++ private.h 2000/07/26 04:39:14 1999.5.1.1
@@ -47,7 +47,7 @@ static char privatehid[] = "@(#)private.
#endif /* !defined HAVE_SETTIMEOFDAY */
#ifndef HAVE_STRERROR
-#define HAVE_STRERROR 0
+#define HAVE_STRERROR 1
#endif /* !defined HAVE_STRERROR */
#ifndef HAVE_SYMLINK
More information about the tz
mailing list