summaryrefslogtreecommitdiff
path: root/math/xlispstat/patches/patch-aa
blob: a87228468122d76a60ac58661f1eb093dd095e7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
$NetBSD: patch-aa,v 1.6 2011/01/29 22:28:02 markd Exp $

--- lowess.c.orig	2000-11-25 00:17:38.000000000 +0100
+++ lowess.c
@@ -12,7 +12,9 @@
 /* forward declarations */
 static double pow2 P1H(double);
 static double pow3 P1H(double x);
+#if !(defined(__DragonFly__) && __DragonFly_version >= 200204) && !(defined(__NetBSD__) && (__NetBSD_Version__ >= 599002100 || (__NetBSD_Version__ >= 501000000 && __NetBSD_Version__ < 599000000))) && !defined(__linux__)
 static double fmax P2H(double, double);
+#endif
 static VOID sort P2H(double *, int);
 static VOID lowest P11H(double *, double *, int, double, double *,
                         int, int, double *, int, double *, int *);
@@ -20,7 +22,9 @@ static VOID lowest P11H(double *, double
 
 static double pow2 P1C(double, x) { return(x * x); }
 static double pow3 P1C(double, x) { return(x * x * x); }
+#if !(defined(__DragonFly__) && __DragonFly_version >= 200204) && !(defined(__NetBSD__) && (__NetBSD_Version__ >= 599002100 || (__NetBSD_Version__ >= 501000000 && __NetBSD_Version__ < 599000000))) && !defined(__linux__)
 static double fmax P2C(double, x, double, y) { return (x > y ? x : y); }
+#endif
 
 int lowess P9C(double *, x, double *, y, int, n, double, f, int, nsteps, double, delta,
                double *, ys, double *, rw, double *, res)