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.
32 lines
662 B
Text
32 lines
662 B
Text
$NetBSD: patch-ag,v 1.6 2004/11/19 12:35:22 sketch Exp $
|
|
|
|
--- src/IMon.c++.orig 2003-01-18 14:18:12.000000000 +0000
|
|
+++ src/IMon.c++ 2004-11-08 14:00:46.523526000 +0000
|
|
@@ -25,6 +25,7 @@
|
|
#include <assert.h>
|
|
#include <errno.h>
|
|
#include <fcntl.h>
|
|
+#include <sys/param.h>
|
|
|
|
#if HAVE_IMON
|
|
#ifdef __sgi
|
|
@@ -32,15 +33,18 @@
|
|
#else
|
|
#include <linux/imon.h>
|
|
#endif
|
|
+#else // HAVE_IMON
|
|
+#include "imon-compat.h"
|
|
#endif
|
|
|
|
+#if HAVE_SYS_SYSMACROS_H
|
|
#include <sys/sysmacros.h>
|
|
+#endif
|
|
#include <unistd.h>
|
|
|
|
#include "Interest.h"
|
|
#include "Log.h"
|
|
#include "Scheduler.h"
|
|
-#include "alloc.h"
|
|
|
|
int IMon::imonfd = -2;
|
|
IMon::EventHandler IMon::ehandler = NULL;
|