extern "C" {
#endif
+#ifdef HAVE_NETINET_TCP_H
+#include <netinet/tcp.h> /* for TCP_NODELAY */
+#endif
+
void ap_reclaim_child_processes(int terminate);
void ap_wait_or_timeout(ap_wait_t *status, ap_proc_t *ret, ap_pool_t *p);
void ap_process_child_status(ap_proc_t *pid, ap_wait_t status);
#if HAVE_SYS_TIME_H
#include <sys/time.h> /* for timeval definitions */
#endif
+#if HAVE_SYS_SOCKET_H
+#include <sys/socket.h> /* for setsockopt prototype */
+#endif
#if defined(DEXTER) || defined(MPMT_BEOS_MPM) || defined(BEOS_MPM)
#define CHILD_TABLE 1
*/
int just_say_no = 1;
- if (ap_setsockopt(s, IPPROTO_TCP, TCP_NODELAY, (char *) &just_say_no,
+ if (setsockopt(s, IPPROTO_TCP, TCP_NODELAY, (char *) &just_say_no,
sizeof(int)) != APR_SUCCESS) {
ap_log_error(APLOG_MARK, APLOG_WARNING, errno, ap_server_conf,
"setsockopt: (TCP_NODELAY)");