Update posgresql to 8.3.3 (#3591)
[openwrt/svn-archive/archive.git] / libs / postgresql / patches / 850-uclibc_no_cbrt.patch
1 --- a/src/backend/utils/adt/float.c
2 +++ b/src/backend/utils/adt/float.c
3 @@ -71,7 +71,9 @@
4 static int float8_cmp_internal(float8 a, float8 b);
5
6 #ifndef HAVE_CBRT
7 -static double cbrt(double x);
8 +#undef cbrt
9 +#define cbrt(x) pg_cbrt(x)
10 +static double pg_cbrt(double x);
11 #endif /* HAVE_CBRT */
12
13
14 @@ -2733,7 +2735,7 @@
15 #ifndef HAVE_CBRT
16
17 static double
18 -cbrt(double x)
19 +pg_cbrt(double x)
20 {
21 int isneg = (x < 0.0);
22 double absx = fabs(x);