diff options
author | Karl Berry <karl@freefriends.org> | 2006-12-18 01:58:59 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2006-12-18 01:58:59 +0000 |
commit | d62799d4a4bd07c090e794bfbe3e25ce2689f693 (patch) | |
tree | fcc3c3b326e1f9f85f9ccb5498915734c07b2bbc /Build/source/texk/dvipdfmx/src | |
parent | 7fc8fcceed56744d8819f2f6d4b161e4c0ab0c8c (diff) |
configure for gm_toff; from Apostolos, for i386-solaris
git-svn-id: svn://tug.org/texlive/trunk@2774 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/dvipdfmx/src')
-rw-r--r-- | Build/source/texk/dvipdfmx/src/pdfdoc.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/Build/source/texk/dvipdfmx/src/pdfdoc.c b/Build/source/texk/dvipdfmx/src/pdfdoc.c index c8ad7e69b71..d2047debe55 100644 --- a/Build/source/texk/dvipdfmx/src/pdfdoc.c +++ b/Build/source/texk/dvipdfmx/src/pdfdoc.c @@ -490,6 +490,13 @@ pdf_doc_set_eop_content (const char *content, unsigned length) static long asn_date (char *date_string) { +#ifndef HAVE_TIMEZONE +#ifdef TM_GM_TOFF + #define timezone (bdtime->gm_toff) +#else + #define timezone 0l +#endif /* TM_GM_TOFF */ +#endif /* HAVE_TIMEZONE */ time_t current_time; struct tm *bd_time; @@ -498,7 +505,7 @@ asn_date (char *date_string) sprintf(date_string, "D:%04d%02d%02d%02d%02d%02d%+03ld'%02ld'", bd_time->tm_year + 1900, bd_time->tm_mon + 1, bd_time->tm_mday, bd_time->tm_hour, bd_time->tm_min, bd_time->tm_sec, - -(bd_time->tm_gmtoff / 3600), (bd_time->tm_gmtoff % 3600) / 60); + -(timezone / 3600), (timezone % 3600) / 60); return strlen(date_string); } |