freebsd-ports/lang/tcl84/files/patch-tclUnixInit.c
Dirk Meyer 2682b52ed9 - add patch for:
FreeBSD only provides the __fpsetreg() used by the following two
for the GNU Compiler. When using, say, Intel's icc they break.
Submitted by:	root@celsius.bychok.com
2003-10-25 20:44:15 +00:00

13 lines
386 B
C

--- tclUnixInit.c Thu May 15 13:29:41 2003
+++ tclUnixInit.c Sun Oct 19 12:39:44 2003
@@ -184,5 +184,9 @@
#endif /* SIGPIPE */
-#ifdef __FreeBSD__
+#if defined(__FreeBSD__) && defined(__GNUC__)
+/*
+ * FreeBSD only provides the __fpsetreg() used by the following two
+ * for the GNU Compiler. When using, say, Intel's icc they break.
+ */
fpsetround(FP_RN);
fpsetmask(0L);