summaryrefslogtreecommitdiff
path: root/comms/plptools/patches/patch-ag
diff options
context:
space:
mode:
Diffstat (limited to 'comms/plptools/patches/patch-ag')
-rw-r--r--comms/plptools/patches/patch-ag40
1 files changed, 40 insertions, 0 deletions
diff --git a/comms/plptools/patches/patch-ag b/comms/plptools/patches/patch-ag
new file mode 100644
index 00000000000..4f639bc3788
--- /dev/null
+++ b/comms/plptools/patches/patch-ag
@@ -0,0 +1,40 @@
+$NetBSD: patch-ag,v 1.1 2001/04/04 08:53:45 skrll Exp $
+
+--- plpnfsd/nfs_prot_svc.c.orig Mon Jul 5 22:33:06 1999
++++ plpnfsd/nfs_prot_svc.c
+@@ -8,7 +8,7 @@
+ #include "OSdefs.h"
+
+ #define PORTMAP
+-#ifdef __SVR4
++#if defined(__SVR4) || defined(__NetBSD__)
+ #include <unistd.h>
+ #include <stdlib.h>
+ #endif
+@@ -16,7 +16,7 @@
+ #include <rpc/rpc.h>
+ #include "nfs_prot.h"
+ #include "mp.h"
+-#ifdef __GLIBC__
++#if defined(__GLIBC__) || defined(__NetBSD__)
+ #include <string.h>
+ #endif
+
+@@ -197,7 +197,7 @@
+ }
+ memset((char *)&argument, 0, sizeof(argument));
+ #if !defined(__SVR4) && !defined(__FreeBSD__)
+-#ifdef __GLIBC__
++#if defined(__GLIBC__) || defined(__NetBSD__)
+ if (!svc_getargs(transp, (xdrproc_t)xdr_argument, (caddr_t)&argument)) {
+ #else
+ if (!svc_getargs(transp, xdr_argument, &argument)) {
+@@ -217,7 +217,7 @@
+ svcerr_systemerr(transp);
+ }
+ #if !defined(__SVR4) && !defined(__FreeBSD__)
+-#ifdef __GLIBC__
++#if defined(__GLIBC__) || defined(__NetBSD__)
+ if (!svc_freeargs(transp, (xdrproc_t)xdr_argument,(caddr_t)&argument)) {
+ #else
+ if (!svc_freeargs(transp, xdr_argument, &argument)) {