20 lines
618 B
Text
20 lines
618 B
Text
$NetBSD: patch-ar,v 1.1 2005/09/07 11:39:55 reed Exp $
|
|
|
|
--- apr/network_io/unix/sendrecv.c.orig 2005-07-15 15:11:22.000000000 +0000
|
|
+++ apr/network_io/unix/sendrecv.c
|
|
@@ -372,11 +372,13 @@ do_select:
|
|
return rv < 0 ? errno : APR_SUCCESS;
|
|
}
|
|
|
|
-#elif defined(__FreeBSD__)
|
|
+#elif defined(__FreeBSD__) || defined(__DragonFly__)
|
|
|
|
static int include_hdrs_in_length(void)
|
|
{
|
|
-#ifdef HAVE_SYS_SYSCTL_H
|
|
+#ifdef __DragonFly__
|
|
+ return(0);
|
|
+#elif defined(HAVE_SYS_SYSCTL_H)
|
|
/* this assumes:
|
|
* if the header exists, so does the sysctlbyname() syscall, and
|
|
* if the header doesn't exist, the kernel is really old
|