blob: c83fb561f82dfff183513802f2da81649200f4a3 (
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.3 2004/03/28 22:00:05 minskim Exp $
--- src/FileSystemTable.c++.orig 2003-01-18 08:18:12.000000000 -0600
+++ src/FileSystemTable.c++
@@ -21,11 +21,13 @@
// Temple Place - Suite 330, Boston MA 02111-1307, USA.
#include <stddef.h>
+#include <stdio.h>
#include "FileSystemTable.h"
-#include <mntent.h>
+#include "fam-mntent.h"
#include <stdlib.h>
#include <string.h>
+#include <sys/param.h>
#if HAVE_STATVFS
#include <sys/statvfs.h>
@@ -255,7 +257,10 @@ FileSystemTable::find(const char *path,
// create_fs_by_name initializes our "root" member variable.
if (!fs_by_name)
{ create_fs_by_name();
+#if !defined(BSD)
+ /* there is no mtab "file" in BSD */
mtab_watcher = new InternalClient(mtab_name, mtab_event_handler, NULL);
+#endif
}
cr.become_user();
|