jorton 2002/11/12 00:45:18
Modified: network_io/unix sendrecv.c Log: Fix build on BSD/OS 4.0, where sys/sysctl.h needs other headers to be included first; only include this header on FreeBSD, since it's only used on FreeBSD by the include_hdrs_in_length() function. Revision Changes Path 1.91 +2 -1 apr/network_io/unix/sendrecv.c Index: sendrecv.c =================================================================== RCS file: /home/cvs/apr/network_io/unix/sendrecv.c,v retrieving revision 1.90 retrieving revision 1.91 diff -u -r1.90 -r1.91 --- sendrecv.c 24 Oct 2002 11:17:01 -0000 1.90 +++ sendrecv.c 12 Nov 2002 08:45:18 -0000 1.91 @@ -60,7 +60,8 @@ #include "fileio.h" #endif /* APR_HAS_SENDFILE */ -#ifdef HAVE_SYS_SYSCTL_H +/* sys/sysctl.h is only needed on FreeBSD for include_hdrs_in_length() */ +#if defined(__FreeBSD__) && defined(HAVE_SYS_SYSCTL_H) #include <sys/sysctl.h> #endif
