diff options
author | rjung <rjung@13f79535-47bb-0310-9956-ffa450edef68> | 2013-07-13 15:54:54 +0000 |
---|---|---|
committer | rjung <rjung@13f79535-47bb-0310-9956-ffa450edef68> | 2013-07-13 15:54:54 +0000 |
commit | 7b06701618fcdee317771f2b233c6bc7e46fa3bc (patch) | |
tree | 70dc2eb978e981a36fb1bc8604656b2e8901c1ab | |
parent | 6801de87f0c8fa72c4fe34996b94748b0ba49f6b (diff) | |
download | libapr-7b06701618fcdee317771f2b233c6bc7e46fa3bc.tar.gz |
Fix broken test for O_NONBLOCK inheritance.
Followup to r1449570 resp. r1449569 (1.5.x)
resp. r1449568 (trunk) which miss the variable
declaration.
Backport of r1502804 from trunk resp. r1502805
(1.5.x).
git-svn-id: http://svn.apache.org/repos/asf/apr/apr/branches/1.4.x@1502807 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r-- | build/apr_network.m4 | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/build/apr_network.m4 b/build/apr_network.m4 index d70fbd998..46e08b33b 100644 --- a/build/apr_network.m4 +++ b/build/apr_network.m4 @@ -570,6 +570,9 @@ AC_DEFUN([APR_CHECK_O_NONBLOCK_INHERITED], [ #ifdef HAVE_SYS_SOCKET_H #include <sys/socket.h> #endif +#ifdef HAVE_SYS_TIME_H +#include <sys/time.h> +#endif #ifdef HAVE_SYS_SELECT_H #include <sys/select.h> #endif @@ -590,6 +593,8 @@ int main(void) { int listen_port, rc; struct sockaddr_in sa; socklen_t sa_len; + fd_set fds; + struct timeval tv; listen_s = socket(AF_INET, SOCK_STREAM, 0); if (listen_s < 0) { |