summaryrefslogtreecommitdiff
path: root/package/squid/patches/patch-lib_util_c
blob: 622df36d6b45bf929039fb8f2562283d76cad00b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
$Id$

	the host tools don't need libm

--- squid-2.5.STABLE13.orig/lib/util.c	2005-06-30 20:50:56.000000000 +0200
+++ squid-2.5.STABLE13/lib/util.c	2006-09-18 19:23:46.000000000 +0200
@@ -704,6 +704,7 @@ xpercent(double part, double whole)
     return xdiv(100 * part, whole);
 }
 
+#ifndef BUILD_HOST_TOOL
 int
 xpercentInt(double part, double whole)
 {
@@ -714,6 +715,7 @@ xpercentInt(double part, double whole)
     return (int) floor(xpercent(part, whole) + 0.5);
 #endif
 }
+#endif
 
 /* somewhat safer division */
 double