home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 9 Archive / 09-Archive.zip / UNZP50P1.ZIP / AMIGA / patch.pw < prev    next >
Text File  |  1993-01-23  |  786b  |  39 lines

  1. *** v41/file_io.c Mon May 20 22:01:51 1991
  2. --- v41a/file_io.c Mon May 20 22:53:32 1991
  3. ***************
  4. *** 719,727 ****
  5.   #ifdef BSD
  6.       static struct timeb tbp;
  7.   #else
  8.       extern long timezone;
  9.   #endif
  10.   
  11.       close(outfd);
  12.   
  13. --- 720,731 ----
  14.   #ifdef BSD
  15.       static struct timeb tbp;
  16.   #else
  17. + #ifdef AMIGA
  18. +     extern char *_TZ;
  19. + #else
  20.       extern long timezone;
  21.   #endif
  22. ! #endif
  23.   
  24.       close(outfd);
  25.   
  26. ***************
  27. *** 794,799 ****
  28. --- 798,806 ----
  29.      ftime(&tbp);
  30.      m_time += tbp.timezone * 60L;
  31.   #else                                   /* !BSD */
  32. + #ifdef AMIGA
  33. +     _TZ = getenv("TZ");
  34. + #endif
  35.       tzset();                            /* Set `timezone'. */
  36.       m_time += timezone;                 /* account for timezone differences */
  37.   #endif
  38.