[Varnish] #464: Varnish won't build on solaris
Varnish
varnish-bugs at projects.linpro.no
Sat Mar 14 07:45:52 CET 2009
#464: Varnish won't build on solaris
-----------------------+----------------------------------------------------
Reporter: joevandyk | Owner:
Type: defect | Status: new
Priority: normal | Milestone:
Component: build | Version: trunk
Severity: normal | Resolution:
Keywords: |
-----------------------+----------------------------------------------------
Comment (by IgorMinar):
On Solaris there is no `isfinite`, but instead there is `finite`.
This patched worked for me:
{{{
diff -ur lib/libvarnish/num.c varnish-2.0.3-patched/lib/libvarnish/num.c
--- lib/libvarnish/num.c Thu Feb 12 03:15:24 2009
+++ lib/libvarnish/num.c Fri Feb 13 13:24:10 2009
@@ -54,7 +54,7 @@
return (err_miss_num);
fval = strtod(p, &end);
- if (end == p || !isfinite(fval))
+ if (end == p || !finite(fval))
return (err_invalid_num);
if (*end == '\0') {
}}}
--
Ticket URL: <http://varnish.projects.linpro.no/ticket/464#comment:2>
Varnish <http://varnish.projects.linpro.no/>
The Varnish HTTP Accelerator
More information about the varnish-bugs
mailing list