1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-14 23:46:10 +00:00
freebsd-ports/cad/xcircuit/files/patch-ab

36 lines
910 B
Plaintext
Raw Normal View History

*** 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 */