pkgsrc/sysutils/fam/patches/patch-at
sketch 97ff422b68 Various fixes/cleanups to get this package compiling on Solaris:
+ 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.
2004-11-19 12:35:22 +00:00

21 lines
616 B
Text

$NetBSD: patch-at,v 1.4 2004/11/19 12:35:22 sketch Exp $
--- src/NetConnection.h.orig 2004-11-08 14:44:19.318981000 +0000
+++ src/NetConnection.h 2004-11-08 14:44:42.403907000 +0000
@@ -68,6 +68,8 @@
void ready_for_input(bool);
int get_fd() const { return fd; }
+ enum { MAXMSGSIZE = PATH_MAX + 40 };
+
protected:
virtual bool input_msg(const char *data, unsigned nbytes) = 0;
@@ -75,7 +77,6 @@
private:
- enum { MAXMSGSIZE = PATH_MAX + 40 };
typedef u_int32_t Length;
typedef struct msgList_s {
char msg[MAXMSGSIZE+5]; // + 4 for 32-bit length, + 1 for overflow