packages/libs/postgresql/patches/850-uclibc_no_cbrt.patch
pavlov 4f68b060ef update to postgresql 8.2.5 and refresh patches
git-svn-id: svn://svn.openwrt.org/openwrt/packages@8876 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-09-20 15:26:17 +00:00

25 lines
680 B
Diff

Index: postgresql-8.2.5/src/backend/utils/adt/float.c
===================================================================
--- postgresql-8.2.5.orig/src/backend/utils/adt/float.c 2007-09-20 10:18:16.000000000 -0500
+++ postgresql-8.2.5/src/backend/utils/adt/float.c 2007-09-20 10:18:17.000000000 -0500
@@ -110,7 +110,9 @@
static int float8_cmp_internal(float8 a, float8 b);
#ifndef HAVE_CBRT
-static double cbrt(double x);
+#undef cbrt
+#define cbrt(x) pg_cbrt(x)
+static double pg_cbrt(double x);
#endif /* HAVE_CBRT */
@@ -2831,7 +2833,7 @@
#ifndef HAVE_CBRT
static double
-cbrt(double x)
+pg_cbrt(double x)
{
int isneg = (x < 0.0);
double absx = fabs(x);