home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / mail / elm / 3207 < prev    next >
Encoding:
Text File  |  1992-11-08  |  2.2 KB  |  85 lines

  1. Newsgroups: comp.mail.elm
  2. Path: sparky!uunet!utcsri!torn!nott!bnrgate!bcrka451!bcrka368!brianmck
  3. From: brianmck@bcrka368.bnr.ca (Brian McKinnon 1615274)
  4. Subject: Re: elm-2.4 Crashes on "send" 
  5. Message-ID: <1992Nov6.224640.13274@bcrka451.bnr.ca>
  6. Sender: 5E00 Corkstown News Server
  7. Reply-To: brianmck@bnr.ca
  8. Organization: Bell-Northern Research, Ottawa, Canada
  9. References: <1992Nov06.201620.2711@bmerh85.bnr.ca> 
  10. Date: Fri, 6 Nov 1992 22:46:40 GMT
  11. Lines: 72
  12.  
  13.  
  14. The problem your experiencing is one I had as well. It is another
  15. Apollo'ism.
  16.  
  17. In file lib/getarpdate.c, you must change the 'timezone()' call to
  18. '_bky_timezone()'. I have included the changed function below. By the
  19. way, Martin J. Laubach first pointed this out, I'm just repeating it.
  20.  
  21.  
  22. In file lib/getarpdate.c:
  23.  
  24. .....
  25.    code deleted
  26.              .....
  27.  
  28. #if defined(BSD) && !defined(_POSIX_SOURCE)
  29. # ifdef apollo
  30.     char *_bky_timezone();
  31. # else
  32.     char *timezone();
  33. # endif
  34. #else
  35.   extern char *tzname[];
  36. #endif
  37.  
  38. char *
  39. get_arpa_date()
  40. {
  41. .....
  42.    code deleted
  43.              .....
  44.  
  45.  
  46.         sprintf(buffer, "%s, %d %s %d %02d:%02d:%02d %s%02d%02d (%s)",
  47.           arpa_dayname[the_time->tm_wday],
  48.           the_time->tm_mday,
  49.           arpa_monname[the_time->tm_mon], the_time->tm_year,
  50.           the_time->tm_hour, the_time->tm_min, the_time->tm_sec,
  51.           tzsign, tzmin / 60, tzmin % 60,
  52. #ifdef BSD
  53. #ifdef TZ_MINUTESWEST
  54. # ifdef GOULD_NP1
  55.           the_time->tm_zone);
  56. # else
  57. #   ifdef apollo
  58.           _bky_timezone(time_zone.tz_minuteswest, the_time->tm_isdst));
  59. #   else
  60.           timezone(time_zone.tz_minuteswest, the_time->tm_isdst));
  61. #   endif
  62. # endif
  63. #else
  64. #   ifdef apollo
  65.           _bky_timezone(loc_time.timezone, the_time->tm_isdst));
  66. #   else
  67.           timezone(loc_time.timezone, the_time->tm_isdst));
  68. #   endif
  69. #endif
  70. #else
  71.           tzname[the_time->tm_isdst]);
  72. #endif
  73.  
  74.         return( (char *) buffer);
  75. }
  76.  
  77.  
  78. ===========================================================================
  79. Brian J. McKinnon                        Phone: (613) 763-7634 (ESN 393)
  80. Bell-Northern Research,                  Fax:   (613) 763-7241
  81. Ottawa, Ontario, Canada                  email: brianmck@bnr.ca
  82.  
  83. "The opinions expressed in the preceding program do not reflect
  84.  the views of the producers, sponsers or employers."
  85.