blob: 2b6732f3539ef5e61357ed217115d2361316b132 (
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
31
32
33
34
35
36
37
38
39
|
$NetBSD: patch-av,v 1.5 2004/11/19 12:35:22 sketch Exp $
--- src/FileSystem.h.orig 2004-11-08 16:45:59.904416000 +0000
+++ src/FileSystem.h 2004-11-08 16:48:24.970550000 +0000
@@ -27,7 +27,13 @@
#include "Request.h"
#include "Set.h"
+#include "fam-mntent.h"
+
+#if defined(HAVE_SYS_MNTTAB_H)
+struct mnttab;
+#else
struct mntent;
+#endif
struct stat;
// FileSystem is the abstract base class for a per-filesystem object.
@@ -91,12 +97,20 @@
typedef Set<ClientInterest *> Interests;
+#if defined(HAVE_SYS_MNTTAB_H)
+ FileSystem(const mnttab&);
+#else
FileSystem(const mntent&);
+#endif
virtual ~FileSystem();
// Miscellaneous routines
+#if defined(HAVE_SYS_MNTTAB_H)
+ bool matches(const mnttab& m) const;
+#else
bool matches(const mntent& m) const;
+#endif
const char *dir() const { return mydir; }
const char *fsname() const { return myfsname; }
const Interests& interests() { return myinterests; }
|