[comp.mail.elm] elm 2.1PL1 - uses bad preprocessor variable

cudcv@warwick.ac.uk (Rob McMahon) (12/20/88)

`BSD4.1' is not a valid preprocessor variable.  Most preprocessors will either
complain, or just ignore the `.1'.  I don't know where this would get defined,
and it don't know whether it should be `BSD41' or `BSD4_1', but it's used in
utils/fastmail.c
-- 
RCS file: /usr/local/src/elm/utils/fastmail.c,v
retrieving revision 2.1
retrieving revision 2.1.1.1
diff -c -r2.1 -r2.1.1.1
*** /tmp/,RCSt1a02827	Tue Dec 20 12:22:06 1988
--- /tmp/,RCSt2a02827	Tue Dec 20 12:22:09 1988
***************
*** 62,68 ****
  #include <stdio.h>
  
  #ifdef BSD
! # ifdef BSD4.1
  #   include <time.h>
  #   include <sys/types.h>
  #   include <sys/timeb.h>
--- 65,71 ----
  #include <stdio.h>
  
  #ifdef BSD
! # ifdef BSD4_1
  #   include <time.h>
  #   include <sys/types.h>
  #   include <sys/timeb.h>
***************
*** 247,253 ****
  		  *localtime();
  	long	   junk;		/* time in seconds....		 */
  #ifdef BSD
! #  ifdef BSD4.1
  	struct timeb loc_time;	/* of course this is different! */
  #  else
  	struct  timeval  time_val;		
--- 250,256 ----
  		  *localtime();
  	long	   junk;		/* time in seconds....		 */
  #ifdef BSD
! #  ifdef BSD4_1
  	struct timeb loc_time;	/* of course this is different! */
  #  else
  	struct  timeval  time_val;		
***************
*** 256,262 ****
  #endif
  
  #ifdef BSD
! #  ifdef BSD4.1
  	junk = (long) time((long *) 0);
  	ftime(&loc_time);
  #  else
--- 259,265 ----
  #endif
  
  #ifdef BSD
! #  ifdef BSD4_1
  	junk = (long) time((long *) 0);
  	ftime(&loc_time);
  #  else
***************
*** 277,283 ****
  	  the_time->tm_min  % 61,
  	  the_time->tm_sec  % 61,
  #ifdef BSD
! #  ifdef BSD4.1
  	  timezone(loc_time.time_zone, the_time->tz_isdst));
  #  else
  	  timezone(time_zone.tz_minuteswest, time_zone.tz_dsttime));
--- 280,286 ----
  	  the_time->tm_min  % 61,
  	  the_time->tm_sec  % 61,
  #ifdef BSD
! #  ifdef BSD4_1
  	  timezone(loc_time.time_zone, the_time->tz_isdst));
  #  else
  	  timezone(time_zone.tz_minuteswest, time_zone.tz_dsttime));
-- 
Rob
-- 
UUCP:   ...!mcvax!ukc!warwick!cudcv	PHONE:  +44 203 523037
JANET:  cudcv@uk.ac.warwick             ARPA:   cudcv@warwick.ac.uk
Rob McMahon, Computing Services, Warwick University, Coventry CV4 7AL, England