summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-06-08 17:41:07 +0000
committerJim Meyering <jim@meyering.net>2003-06-08 17:41:07 +0000
commit45840e899ffbab760f33af42c372126b1c8ff243 (patch)
tree3c743c9c8d7bdb34cd49d811e5d6b18e3da238d7 /lib
parent60f6a7d72f1e479da8d51796f5941c0e80c45878 (diff)
downloadcoreutils-45840e899ffbab760f33af42c372126b1c8ff243.tar.xz
Clean up, as part of merge with emacs version of strftime.c.
(my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]: Remove function, now that we can rely on a working tzset function. Ensure that the required autoconf test has been run.
Diffstat (limited to 'lib')
-rw-r--r--lib/strftime.c24
1 files changed, 5 insertions, 19 deletions
diff --git a/lib/strftime.c b/lib/strftime.c
index fabb26530..838cfa710 100644
--- a/lib/strftime.c
+++ b/lib/strftime.c
@@ -493,25 +493,11 @@ static CHAR_T const month_name[][10] =
# define ns 0
#endif
-#if !defined _LIBC && HAVE_TZNAME && HAVE_TZSET
- /* Solaris 2.5 tzset sometimes modifies the storage returned by localtime.
- Work around this bug by copying *tp before it might be munged. */
- size_t _strftime_copytm __P ((char *, size_t, const char *,
- const struct tm * extra_args_spec_iso));
- size_t
- my_strftime (s, maxsize, format, tp extra_args)
- CHAR_T *s;
- size_t maxsize;
- const CHAR_T *format;
- const struct tm *tp;
- extra_args_spec
- {
- struct tm tmcopy;
- tmcopy = *tp;
- return _strftime_copytm (s, maxsize, format, &tmcopy extra_args);
- }
-# undef my_strftime
-# define my_strftime _strftime_copytm
+#if ! HAVE_RUN_TZSET_TEST
+/* Solaris 2.5.x and 2.6 tzset sometimes modify the storage returned
+ by localtime. On such systems, we must use the tzset and localtime
+ wrappers to work around the bug. */
+"you must run the autoconf test for a working tzset function"
#endif