aboutsummaryrefslogtreecommitdiffstats
path: root/cad/xcircuit/files/patch-ab
blob: a4bd87d732ae874272794279a202ddf320ca7b03 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
*** xcircuit.c.orig	Fri Jan 14 00:21:21 2000
--- xcircuit.c	Fri Jan 21 12:00:00 2000
***************
*** 11,22 ****
--- 11,27 ----
  #include <stdio.h>
  #include <stdlib.h>
  #include <string.h>
+ #ifndef __STDC__
  #include <malloc.h>
+ #endif
  #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>
***************
*** 1435,1440 ****
--- 1440,1449 ----
     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 */