%% /u/ftp/pub/lcc/lcc-4.1.beta.8.patch.1, Fri Sep 21 07:48:53 2001
%% Edit by Nelson H. F. Beebe <beebe at math.utah.edu>

This patch corrects an oversight in the FreeBSD preprocessor interface;
the predefined symbols were accidentally left at their values from
GNU/Linux, instead of being updated to the non-gcc-specific subset that
gcc defines.

Since the patch is minor, and affects only one platform, I have
intentionally not changed the version date of this release: it still
reports

	lcc version 4.1.beta.8 [06-Apr-2001]

Apply this patch in the top-level lcc-4.1.beta.8 directory with

	patch -p 0 < lcc-4.1.beta.8.patch.1

------------------------------------------------------------------------

*** etc/x86/freebsd.c	Wed Mar 21 06:56:06 2001
--- /usr/local/src/lcc/lcc-4.1.beta.9/etc/x86/freebsd.c	Mon Sep 10 08:28:37 2001
***************
*** 4,10 ****
  
  #include <string.h>
  
! static char rcsid[] = "$Id: freebsd.c,v 1.4 2001/03/21 13:56:04 beebe Exp beebe $";
  
  #ifndef LOCALDIR
  #define LOCALDIR "/usr/local/"
--- 4,10 ----
  
  #include <string.h>
  
! static char rcsid[] = "$Id: freebsd.c,v 1.5 2001/09/10 14:28:17 beebe Exp beebe $";
  
  #ifndef LOCALDIR
  #define LOCALDIR "/usr/local/"
***************
*** 29,38 ****
  char inputs[256] = "";
  char *cpp[] = { LCCDIR "cpp",
  	"-U__GNUC__", "-D_POSIX_SOURCE", "-D__STDC__=1", "-D__STRICT_ANSI__",
! 	"-Dunix", "-Di386", "-Dlinux",
! 	"-D__unix__", "-D__i386__", "-D__linux__",
! 
! 
  	"-D__signed=signed",	/* to fix mistake in <machine/ansi.h> (included by many other header files) */
  
  	/* These gcc-specific symbols confuse lcc: define them differently */
--- 29,42 ----
  char inputs[256] = "";
  char *cpp[] = { LCCDIR "cpp",
  	"-U__GNUC__", "-D_POSIX_SOURCE", "-D__STDC__=1", "-D__STRICT_ANSI__",
! 	"-D__ELF__",
! 	"-D__FreeBSD__",
! 	"-D__i386",
! 	"-D__i386__",
! 	"-D__unix",
! 	"-D__unix__",
! 	"-Di386",
! 	"-Dunix",
  	"-D__signed=signed",	/* to fix mistake in <machine/ansi.h> (included by many other header files) */
  
  	/* These gcc-specific symbols confuse lcc: define them differently */
