Commit 56bcfea3 authored by stolz's avatar stolz
Browse files

[project @ 2003-01-17 17:01:13 by stolz]

- Add sendfile-API for pumping out data via sendfile(2)
  Currently supported are Linux (tested) & FreeBSD (not tested yet), others
  will throw a runtime error until I get around to implement a fallback.
parent e14871c9
......@@ -393,6 +393,12 @@
/* Define if usleep returns void */
#undef USLEEP_RETURNS_VOID
/* Define if it looks like a Linux sendfile(2) implementation */
#undef HAVE_LINUX_SENDFILE
/* Define if it looks like a BSDish sendfile(2) implementation */
#undef HAVE_BSD_SENDFILE
/* Define if C compiler supports long long types */
#undef HAVE_LONG_LONG
......
......@@ -1179,6 +1179,22 @@ AC_EGREP_HEADER(in_addr_t, netinet/in.h,
[ AC_DEFINE(HAVE_IN_ADDR_T) AC_MSG_RESULT(yes) ],
AC_MSG_RESULT(no))
dnl --------------------------------------------------
dnl * test for Linux sendfile(2)
dnl --------------------------------------------------
AC_MSG_CHECKING(for sendfile in sys/sendfile.h)
AC_EGREP_HEADER(sendfile, sys/sendfile.h,
[ AC_DEFINE(HAVE_LINUX_SENDFILE) AC_MSG_RESULT(yes) ],
AC_MSG_RESULT(no))
dnl --------------------------------------------------
dnl * test for BSD sendfile(2)
dnl --------------------------------------------------
AC_MSG_CHECKING(for sendfile in sys/socket.h)
AC_EGREP_HEADER(sendfile, sys/socket.h,
[ AC_DEFINE(HAVE_BSD_SENDFILE) AC_MSG_RESULT(yes) ],
AC_MSG_RESULT(no))
dnl --------------------------------------------------
dnl * test for GTK+
dnl --------------------------------------------------
......
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment