git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2459
d4fa192b-c00b-0410-8231-
f00ffab90ce4
vss.c \
vtmpfile.c
-libvarnish_la_LIBADD = ${RT_LIBS} ${NET_LIBS}
+libvarnish_la_LIBADD = ${RT_LIBS} ${NET_LIBS} ${LIBM}
TESTS = num_c_test
num_c_test_SOURCES = num.c
num_c_test_CFLAGS = -DNUM_C_TEST -include config.h
+num_c_test_LDADD = ${LIBM}
test: ${TESTS}
@for test in ${TESTS} ; do ./$${test} ; done
return ("Invalid suffix");
}
- /* intentionally not round(fval) to avoid need for -lm */
- *r = (uintmax_t)(fval + 0.5);
+ *r = (uintmax_t)round(fval);
return (NULL);
}