pkgsrc/sysutils/fam/patches/patch-as
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

24 lines
528 B
Text

$NetBSD: patch-as,v 1.4 2004/11/19 12:35:22 sketch Exp $
--- src/RPC_TCP_Connector.c++.orig 2003-01-18 14:18:12.000000000 +0000
+++ src/RPC_TCP_Connector.c++ 2004-11-09 09:44:26.581058000 +0000
@@ -22,10 +22,19 @@
#include "RPC_TCP_Connector.h"
+#define PORTMAP
+
#include <errno.h>
+#ifdef __SUNPRO_CC
+extern "C" {
+#endif
#include <rpc/rpc.h>
#include <rpc/pmap_prot.h>
+#ifdef __SUNPRO_CC
+}
+#endif
#include <sys/ioctl.h>
+#include <sys/filio.h>
#include <sys/socket.h>
#include <unistd.h>
#include <string.h>