summaryrefslogtreecommitdiff
path: root/acconfig.h
diff options
context:
space:
mode:
authordreid <dreid@13f79535-47bb-0310-9956-ffa450edef68>2001-01-04 22:02:34 +0000
committerdreid <dreid@13f79535-47bb-0310-9956-ffa450edef68>2001-01-04 22:02:34 +0000
commite040f20816fb9b889c4bbaabe3e073e4256bb6ce (patch)
treea306eade46bb79fcdeb4dce88d95d719c6b6d0f3 /acconfig.h
parent622eddace9909babc88f8828bdeee4400392ecac (diff)
downloadlibapr-e040f20816fb9b889c4bbaabe3e073e4256bb6ce.tar.gz
This patch adds support for TCP_NOPUSH to APR. Basically we look for
TCP_CORK or TCP_NOPUSH and if we find them we define APR_HAVE_CORKABLE_TCP. Once defined we then make os_cork and os_uncork available. At present they're not used except in the apr_sendfile code, but there may be uses for the routines in other areas of our network code as well, hence the change. In addition I've changed SOL_TCP to IPPROTO_TCP as this is more portable. Also tiny change to the way we check the version number in configure.in to decide if we want to use sendfile on FreeBSD. Submitted by: Tony Finch <dot@dotat.at> git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@61016 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'acconfig.h')
-rw-r--r--acconfig.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/acconfig.h b/acconfig.h
index f3adb4157..25d28f6c8 100644
--- a/acconfig.h
+++ b/acconfig.h
@@ -37,6 +37,10 @@
/* BeOS specific flag */
#undef HAVE_BONE_VERSION
+/* Does this system have a corkable TCP? */
+#undef HAVE_TCP_CORK
+#undef HAVE_TCP_NOPUSH
+
@BOTTOM@
/* Make sure we have ssize_t defined to be something */