update to postgresql 8.2.5 and refresh patches
[packages.git] / libs / postgresql / patches / 850-uclibc_no_cbrt.patch
1 Index: postgresql-8.2.5/src/backend/utils/adt/float.c
2 ===================================================================
3 --- postgresql-8.2.5.orig/src/backend/utils/adt/float.c 2007-09-20 10:18:16.000000000 -0500
4 +++ postgresql-8.2.5/src/backend/utils/adt/float.c      2007-09-20 10:18:17.000000000 -0500
5 @@ -110,7 +110,9 @@
6  static int     float8_cmp_internal(float8 a, float8 b);
7  
8  #ifndef HAVE_CBRT
9 -static double cbrt(double x);
10 +#undef cbrt
11 +#define cbrt(x) pg_cbrt(x)
12 +static double pg_cbrt(double x);
13  #endif   /* HAVE_CBRT */
14  
15  
16 @@ -2831,7 +2833,7 @@
17  #ifndef HAVE_CBRT
18  
19  static double
20 -cbrt(double x)
21 +pg_cbrt(double x)
22  {
23         int                     isneg = (x < 0.0);
24         double          absx = fabs(x);