pkgsrc/sysutils/fam/patches/patch-av

40 lines
968 B
Text
Raw Normal View History

$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; }