|
|
@@ -171,3 +171,31 @@ Index: lib/readline/display.c
|
|
|
return (prompt_prefix_length);
|
|
|
}
|
|
|
|
|
|
+-----------------------------------------------------------------------------
|
|
|
+
|
|
|
+Fix timezone handling for HPUX
|
|
|
+
|
|
|
+Index: lib/sh/strftime.c
|
|
|
+--- lib/sh/strftime.c.orig 2004-03-04 04:13:23 +0100
|
|
|
++++ lib/sh/strftime.c 2004-08-06 12:40:06 +0200
|
|
|
+@@ -97,6 +97,8 @@
|
|
|
+ extern int daylight;
|
|
|
+ #if defined(SOLARIS) || defined(mips) || defined (M_UNIX)
|
|
|
+ extern long int timezone, altzone;
|
|
|
++#elif defined(HPUX)
|
|
|
++extern long int timezone;
|
|
|
+ #else
|
|
|
+ extern int timezone, altzone;
|
|
|
+ #endif
|
|
|
+@@ -480,7 +482,11 @@
|
|
|
+ * Systems with tzname[] probably have timezone as
|
|
|
+ * secs west of GMT. Convert to mins east of GMT.
|
|
|
+ */
|
|
|
++#if defined(HPUX)
|
|
|
++ off = -(timezone / 60);
|
|
|
++#else
|
|
|
+ off = -(daylight ? timezone : altzone) / 60;
|
|
|
++#endif /* HPUX */
|
|
|
+ #else /* !HAVE_TZNAME */
|
|
|
+ off = -zone.tz_minuteswest;
|
|
|
+ #endif /* !HAVE_TZNAME */
|