patch-lib_util_c 528 B

12345678910111213141516171819202122
  1. $Id$
  2. the host tools don't need libm
  3. --- squid-2.5.STABLE13.orig/lib/util.c 2005-06-30 20:50:56.000000000 +0200
  4. +++ squid-2.5.STABLE13/lib/util.c 2006-09-18 19:23:46.000000000 +0200
  5. @@ -704,6 +704,7 @@ xpercent(double part, double whole)
  6. return xdiv(100 * part, whole);
  7. }
  8. +#ifndef BUILD_HOST_TOOL
  9. int
  10. xpercentInt(double part, double whole)
  11. {
  12. @@ -714,6 +715,7 @@ xpercentInt(double part, double whole)
  13. return (int) floor(xpercent(part, whole) + 0.5);
  14. #endif
  15. }
  16. +#endif
  17. /* somewhat safer division */
  18. double