ports/math/reduce/files/patch-csl_cslbase_headers.h
Stephen Montgomery-Smith d405ab07b1 - New port math/reduce.
This is a powerful Computer-Algebra System written in it's own version of
LISP with quite a long history behind it.

PR:		ports/186855
Submitted by:	Pedro Giffuni <giffunip@tutopia.com>
2014-02-18 22:16:33 +00:00

22 lines
556 B
C

Index: csl/cslbase/headers.h
===================================================================
--- csl/cslbase/headers.h (revision 1603)
+++ csl/cslbase/headers.h (working copy)
@@ -97,6 +97,17 @@
#define PRIxPTR "llx"
#endif
+/*
+ * This is necessary to for timeval in BSD systems.
+ */
+#if (defined(__unix__) || defined(unix)) && !defined(USG)
+#include <sys/param.h>
+#endif
+
+#if (defined(BSD) && (BSD >= 199103))
+#include <sys/time.h>
+#endif
+
#ifndef UNDER_CE
/*
* The test for UNDER_CE is a little odd here, but when I once compiled a