You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@apr.apache.org by rj...@apache.org on 2013/07/13 17:47:26 UTC
svn commit: r1502804 - /apr/apr/trunk/build/apr_network.m4
Author: rjung
Date: Sat Jul 13 15:47:26 2013
New Revision: 1502804
URL: http://svn.apache.org/r1502804
Log:
Fix broken test for O_NONBLOCK inheritance.
Followup to r1449568 which misses the
variable declaration.
Modified:
apr/apr/trunk/build/apr_network.m4
Modified: apr/apr/trunk/build/apr_network.m4
URL: http://svn.apache.org/viewvc/apr/apr/trunk/build/apr_network.m4?rev=1502804&r1=1502803&r2=1502804&view=diff
==============================================================================
--- apr/apr/trunk/build/apr_network.m4 (original)
+++ apr/apr/trunk/build/apr_network.m4 Sat Jul 13 15:47:26 2013
@@ -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) {