Skip to content

Commit

Permalink
Fix Solaris builds (Issue #498)
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelrsweet committed Sep 13, 2023
1 parent 07c63af commit 3cdeb68
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
3 changes: 2 additions & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

- Now link to CUPS library instead of embedding its HTTP code.
- Fixed multiple conversions of UTF-8 HTML files from the GUI (Issue #496)
- Fixed some minor CodeQL warnings.
- Fixed a compile bug on Solaris (Issue #498)
- Fixed a crash bug with bad title images (Issue #510)
- Fixed some minor CodeQL warnings.


# Changes in HTMLDOC v1.9.16
Expand Down
14 changes: 11 additions & 3 deletions htmldoc/ps-pdf.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* broken into more manageable pieces once we make all of the output
* "drivers" into classes...
*
* Copyright © 2011-2022 by Michael R Sweet.
* Copyright © 2011-2023 by Michael R Sweet.
* Copyright © 1997-2010 by Easy Software Products. All rights reserved.
*
* This program is free software. Distribution and use rights are outlined in
Expand Down Expand Up @@ -11651,8 +11651,12 @@ write_prolog(FILE *out, /* I - Output file */
doc_date.tm_hour, doc_date.tm_min, doc_date.tm_sec,
#ifdef WIN32
(int)(_timezone / 3600));
#else
#elif HAVE_TM_GMTOFF
(int)(doc_date.tm_gmtoff / 3600));
#elif defined(__sun)
(int)(timezone / 3600));
#else
0);
#endif // WIN32
if (doc_title != NULL)
fprintf(out, "%%%%Title: %s\n", doc_title);
Expand Down Expand Up @@ -12040,8 +12044,12 @@ write_prolog(FILE *out, /* I - Output file */
doc_date.tm_hour, doc_date.tm_min, doc_date.tm_sec,
#ifdef WIN32
(int)(_timezone / 3600));
#else
#elif HAVE_TM_GMTOFF
(int)(doc_date.tm_gmtoff / 3600));
#elif defined(__sun)
(int)(timezone / 3600));
#else
0);
#endif // WIN32
write_string(out, (uchar *)temp, 0);

Expand Down

0 comments on commit 3cdeb68

Please sign in to comment.