97ff422b68
+ Use the mnttab(4) interface instead of mntent. + C++ syntax cleanups to appease the SunPro compiler. + Use MAXPATHLEN instead of NAME_MAX which can be unimplemented on strict POSIX systems. + Use POSIX inttypes.h if BSD types are not available. + RPC includes and C++ namespace fixes. + Use dirent(3) instead of older sys/dir.h interface. + Avoid `sun' namespace collision. Patch based on the work of Robert Lillack and others, described in http://mail-index.netbsd.org/tech-pkg/2004/08/20/0005.html and tested with SunPro and gcc.
16 lines
438 B
Text
16 lines
438 B
Text
$NetBSD: patch-aw,v 1.5 2004/11/19 12:35:22 sketch Exp $
|
|
|
|
--- src/LocalFileSystem.h.orig 2004-11-08 16:53:36.684849000 +0000
|
|
+++ src/LocalFileSystem.h 2004-11-08 16:54:10.095510000 +0000
|
|
@@ -38,7 +38,11 @@
|
|
|
|
public:
|
|
|
|
+#if defined(HAVE_SYS_MNTTAB_H)
|
|
+ LocalFileSystem(const mnttab&);
|
|
+#else
|
|
LocalFileSystem(const mntent&);
|
|
+#endif
|
|
|
|
virtual bool dir_entries_scanned() const;
|
|
virtual int get_attr_cache_timeout() const;
|