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.
21 lines
464 B
Text
21 lines
464 B
Text
$NetBSD: patch-aq,v 1.4 2004/11/19 12:35:22 sketch Exp $
|
|
|
|
--- src/ServerHost.h.orig 2003-01-18 14:18:12.000000000 +0000
|
|
+++ src/ServerHost.h 2004-11-08 13:45:49.261211000 +0000
|
|
@@ -24,6 +24,7 @@
|
|
#define ServerHost_included
|
|
|
|
#include <limits.h>
|
|
+#include <stdio.h>
|
|
#include "Boolean.h"
|
|
#include "ClientInterest.h"
|
|
#include "RequestMap.h"
|
|
@@ -101,7 +102,7 @@
|
|
private:
|
|
|
|
Request myrequest;
|
|
- char mypath[NAME_MAX];
|
|
+ char mypath[MAXPATHLEN];
|
|
|
|
};
|
|
|