packages/libs/postgresql/patches/850-uclibc_no_cbrt.patch
pavlov 34f1e5c248 update to postgresql 8.3 and refresh patches
git-svn-id: svn://svn.openwrt.org/openwrt/packages@10408 3c298f89-4303-0410-b956-a3cf2f4a3e73
2008-02-06 22:38:13 +00:00

25 lines
678 B
Diff

Index: postgresql-8.3.0/src/backend/utils/adt/float.c
===================================================================
--- postgresql-8.3.0.orig/src/backend/utils/adt/float.c 2008-01-01 13:45:52.000000000 -0600
+++ postgresql-8.3.0/src/backend/utils/adt/float.c 2008-02-06 16:30:02.000000000 -0600
@@ -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);