[comp.mail.elm] Elm 2.2 PL1 changes for VMS

jim@umigw.MIAMI.EDU (jim brown) (04/21/89)

The following changes should be made to the elm 2.2 sources for consistency.
They also allow all but three modules to successfully compile on VMS with GCC
(no EUNICE).

Regards,
Jim

*** init.c;1	Fri Apr 21 02:46:57 1989
--- init.c	Fri Apr 21 03:54:05 1989
***************
*** 26,41 ****
  #include "headers.h"
  #include "patchlevel.h"
  
! #ifdef BSD
! #  include <sgtty.h>
! #else
  #  include <termio.h>
  #endif
  
! #include <pwd.h>
  
  #ifdef BSD
  #  include <sys/time.h>
  #else
  #  include <time.h>
  #endif
--- 26,49 ----
  #include "headers.h"
  #include "patchlevel.h"
  
! #ifdef TERMIO
  #  include <termio.h>
+ #else
+ #  include <sgtty.h>
  #endif
  
! #ifdef PWDINSYS
! #  include <sys/pwd.h>
! #else
! #  include <pwd.h>
! #endif
  
  #ifdef BSD
+ # ifdef TMINSYS
  #  include <sys/time.h>
+ # else
+ #  include <time.h>
+ # endif
  #else
  #  include <time.h>
  #endif
*** reply.c;1	Fri Apr 21 02:47:07 1989
--- reply.c	Fri Apr 21 04:08:34 1989
***************
*** 29,35 ****
--- 29,37 ----
  
  #ifndef BSD
  #  include <sys/types.h>
+ # ifndef VMS
  #  include <sys/utsname.h>
+ # endif
  #endif
  
  /** Note that this routine generates automatic header information
*** savecopy.c;1	Fri Apr 21 02:47:08 1989
--- savecopy.c	Fri Apr 21 03:46:13 1989
***************
*** 25,32 ****
  **/
  
  #include "headers.h"
! #ifdef TMINSYS
! # include <sys/time.h>
  #else
  # include <time.h>
  #endif
--- 25,36 ----
  **/
  
  #include "headers.h"
! #ifdef BSD			/* Berkeley has library elsewhere... */
! # ifdef TMINSYS
! #  include <sys/time.h>
! # else
! #  include <time.h>
! # endif
  #else
  # include <time.h>
  #endif
*** validname.c;1	Fri Apr 21 02:47:13 1989
--- validname.c	Fri Apr 21 03:54:02 1989
***************
*** 24,33 ****
  
  #include <stdio.h>
  
! #ifdef PWDINSYS
  #  include <sys/pwd.h>
! #else
  #  include <pwd.h>
  #endif
  
  int
--- 24,35 ----
  
  #include <stdio.h>
  
! #ifndef NOCHECK_VALIDNAME		 /* Force a return of valid */
! # ifdef PWDINSYS
  #  include <sys/pwd.h>
! # else
  #  include <pwd.h>
+ # endif
  #endif
  
  int

-- 
Jim Brown, University of Miami, RSMAS/MPO
[send mail to jim@umigw.miami.edu]