Conditionalized sendfile support...

...on the presence of sys/sendfile.h, since FreeBSD version is
slightly different.
This commit is contained in:
Guillaume Melquiond 2009-04-23 21:43:29 +00:00
parent 0892b7d631
commit 9535cf7fac

View file

@ -740,7 +740,8 @@ AC_FUNC_ERROR_AT_LINE
AC_FUNC_STAT
AC_FUNC_STRFTIME
AC_CHECK_LIB(m, floor)
AC_CHECK_FUNCS([round socket strtoul sendfile])
AC_CHECK_FUNCS([round socket strtoul])
AC_CHECK_HEADER([sys/sendfile.h], [AC_CHECK_FUNCS([sendfile])], [])
#######################################################################