30 lines
987 B
Text
30 lines
987 B
Text
$NetBSD: patch-af,v 1.2 2006/01/03 15:03:02 joerg Exp $
|
|
|
|
--- tvutil.c.orig 2000-10-23 02:43:46.000000000 +0000
|
|
+++ tvutil.c
|
|
@@ -35,7 +35,7 @@
|
|
#include <fcntl.h>
|
|
#include <signal.h>
|
|
#include <sys/types.h>
|
|
-#if defined(__FreeBSD__)
|
|
+#if defined(__FreeBSD__) || defined(__DragonFly__)
|
|
# include <sys/sysctl.h>
|
|
#elif defined(__bsdi__) || defined(__NetBSD__) || defined(__OpenBSD__)
|
|
# include <sys/param.h>
|
|
@@ -105,14 +105,14 @@ void CleanupChildFileDesc()
|
|
{
|
|
static int Max_files_per_proc = -1;
|
|
|
|
-#if defined(__FreeBSD__)
|
|
+#if defined(__FreeBSD__) || defined(__DragonFly__)
|
|
int mib[2] = { CTL_KERN, KERN_MAXFILESPERPROC };
|
|
#elif defined(linux)
|
|
int mib[2] = { CTL_KERN, FOPEN_MAX };
|
|
#elif defined(__bsdi__)
|
|
int mib[2] = { CTL_KERN, KERN_MAXFILES };
|
|
#elif defined(__NetBSD__)
|
|
- int mib[2] = { CTL_KERN, OPEN_MAX };
|
|
+ int mib[2] = { CTL_KERN, KERN_MAXFILES };
|
|
#elif defined(__OpenBSD__)
|
|
int mib[2] = { CTL_KERN, OPEN_MAX };
|
|
#endif
|