summaryrefslogtreecommitdiff
path: root/include/arch/unix/networkio.h
diff options
context:
space:
mode:
authorrbb <rbb@13f79535-47bb-0310-9956-ffa450edef68>1999-12-03 15:18:49 +0000
committerrbb <rbb@13f79535-47bb-0310-9956-ffa450edef68>1999-12-03 15:18:49 +0000
commite25a953d65012b5c7c05f4d25b0ded43b82c1f65 (patch)
tree0c1f9343452dc2ccbcbd08ab07346ecc1ae8d293 /include/arch/unix/networkio.h
parent6fab83b33a96c54b2f029f4f43de662f1d6656dc (diff)
downloadlibapr-e25a953d65012b5c7c05f4d25b0ded43b82c1f65.tar.gz
Fix the logic in blocking vs non-blocking pipes to children. It only
makes sense to change the blocking attributes of a pipe if we actually are successful in creating the pipe. git-svn-id: http://svn.apache.org/repos/asf/apr/apr/trunk@59501 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'include/arch/unix/networkio.h')
-rw-r--r--include/arch/unix/networkio.h37
1 files changed, 35 insertions, 2 deletions
diff --git a/include/arch/unix/networkio.h b/include/arch/unix/networkio.h
index e38c2c211..2cb64086f 100644
--- a/include/arch/unix/networkio.h
+++ b/include/arch/unix/networkio.h
@@ -59,10 +59,43 @@
#include "apr_config.h"
#include "apr_network_io.h"
#include "apr_general.h"
-#include "apr_lock.h"
-#ifdef HAVE_POLL_H
+#include "apr_lib.h"
+
+/* System headers the network I/O library needs */
+#if HAVE_POLL_H
#include <poll.h>
#endif
+#if HAVE_ERRNO_H
+#include <errno.h>
+#endif
+#if HAVE_SYS_TIME_H
+#include <sys/time.h>
+#endif
+#if HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+#if HAVE_STRING_H
+#include <string.h>
+#endif
+#if HAVE_NETINET_TCP_H
+#include <netinet/tcp.h>
+#endif
+#if HAVE_NETINET_IN_H
+#include <netinet/in.h>
+#endif
+#if HAVE_ARPA_INET_H
+#include <arpa/inet.h>
+#endif
+#if HAVE_SYS_SOCKET_H
+#include <sys/socket.h>
+#endif
+#if HAVE_NETDB_H
+#include <netdb.h>
+#endif
+#if HAVE_FCNTL_H
+#include <fcntl.h>
+#endif
+/* End System Headers */
struct socket_t {
ap_context_t *cntxt;