#include "sbcl.h"
#include "runtime.h"
+#ifdef LISP_FEATURE_HPUX
+struct tm *gmtime_r(const time_t *timer, struct tm *result);
+struct tm *localtime_r(const time_t *timer, struct tm *result);
+#endif
+
void get_timezone(time_t when, int *secwest, boolean *dst)
{
struct tm ltm, gtm;
* The Windows versions also don't support times before the
* epoch, so we kludge it. */
if (when < 0)
- when = -when;
+ when = 0;
ltm = *localtime(&when);
gtm = *gmtime(&when);
#else