packages/libs/postgresql/patches/850-uclibc_no_cbrt.patch
florian 86565f3658 Update posgresql to 8.3.3 (#3591)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@11727 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-07-06 17:31:31 +00:00

23 lines
449 B
Diff

--- a/src/backend/utils/adt/float.c
+++ b/src/backend/utils/adt/float.c
@@ -71,7 +71,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 */
@@ -2733,7 +2735,7 @@
#ifndef HAVE_CBRT
static double
-cbrt(double x)
+pg_cbrt(double x)
{
int isneg = (x < 0.0);
double absx = fabs(x);