summaryrefslogtreecommitdiff
path: root/multimedia/fxtv/patches/patch-af
blob: 85d821a43630196977c926bde65474dd52534e7d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
$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