diff options
author | dreid <dreid@13f79535-47bb-0310-9956-ffa450edef68> | 2001-01-04 22:02:34 +0000 |
---|---|---|
committer | dreid <dreid@13f79535-47bb-0310-9956-ffa450edef68> | 2001-01-04 22:02:34 +0000 |
commit | e040f20816fb9b889c4bbaabe3e073e4256bb6ce (patch) | |
tree | a306eade46bb79fcdeb4dce88d95d719c6b6d0f3 /include/apr.h.in | |
parent | 622eddace9909babc88f8828bdeee4400392ecac (diff) | |
download | libapr-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 'include/apr.h.in')
-rw-r--r-- | include/apr.h.in | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/apr.h.in b/include/apr.h.in index 823fabfa9..d047bbe81 100644 --- a/include/apr.h.in +++ b/include/apr.h.in @@ -86,7 +86,7 @@ #define APR_HAVE_MEMMOVE @have_memmove@ #define APR_HAVE_BZERO @have_bzero@ #define APR_HAVE_IPV6 @have_ipv6@ - +#define APR_HAVE_CORKABLE_TCP @have_corkable_tcp@ #if APR_HAVE_SYS_TYPES_H #include <sys/types.h> @@ -128,6 +128,11 @@ */ #define APR_CHARSET_EBCDIC @apr_charset_ebcdic@ +/* If we have a TCP implementation that can be "corked", what flag + * do we use? + */ +#define APR_TCP_NOPUSH_FLAG @apr_tcp_nopush_flag@ + /* Typedefs that APR needs. */ typedef @short_value@ apr_int16_t; |