*** xcircuit.c.orig	Tue Aug  8 06:08:18 2000
--- xcircuit.c	Thu Aug 17 05:00:16 2000
***************
*** 11,23 ****
--- 11,28 ----
  #include <stdio.h>
  #include <stdlib.h>
  #include <string.h>
+ #ifndef __STDC__
  #include <malloc.h>
+ #endif
  #include <signal.h>
  #include <sys/types.h>
  #include <sys/stat.h>
  #include <errno.h>
  #include <limits.h>
  #include <locale.h>
+ #ifdef __FreeBSD__
+ #include <machine/floatingpoint.h>
+ #endif
  
  #include <X11/Intrinsic.h>
  #include <X11/StringDefs.h>
***************
*** 1701,1706 ****
--- 1706,1715 ----
     char		*argv0;		/* find root of argv[0] */
     short initargc = argc;	/* because XtInitialize() absorbs the     */
     				/* -schem flag and renumbers argc! (bug?) */
+ 
+ #ifdef __FreeBSD__
+    fpsetmask(0);
+ #endif
  
     /*-----------------------------------------------------------*/
     /* Find the root of the command called from the command line */
