aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plpnfsd/mp_inode.c2
-rw-r--r--plpnfsd/mp_main.c2
-rw-r--r--plpnfsd/mp_pfs_ops.c2
-rw-r--r--plpnfsd/nfs_prot_svc.c8
4 files changed, 7 insertions, 7 deletions
diff --git a/plpnfsd/mp_inode.c b/plpnfsd/mp_inode.c
index 6fec6df..0997681 100644
--- a/plpnfsd/mp_inode.c
+++ b/plpnfsd/mp_inode.c
@@ -11,7 +11,7 @@
#include "mp.h"
#include "rfsv_api.h"
-#if defined(__SVR4) || defined(__GLIBC__) || defined(__FreeBSD__)
+#if defined(__SVR4) || defined(__GLIBC__) || defined(__FreeBSD__) || defined(__NetBSD__)
#include <string.h>
#include <stdlib.h>
#endif
diff --git a/plpnfsd/mp_main.c b/plpnfsd/mp_main.c
index d8df171..b026db3 100644
--- a/plpnfsd/mp_main.c
+++ b/plpnfsd/mp_main.c
@@ -22,7 +22,7 @@
#include <errno.h>
#include "nfs_prot.h"
#include "mp.h"
-#if defined (__SVR4) || defined(__sgi)
+#if defined (__SVR4) || defined(__sgi) || defined(__NetBSD__)
#include <stdlib.h> /* getenv */
#include <string.h> /* strcmp */
#endif
diff --git a/plpnfsd/mp_pfs_ops.c b/plpnfsd/mp_pfs_ops.c
index 8141a14..e90b7a5 100644
--- a/plpnfsd/mp_pfs_ops.c
+++ b/plpnfsd/mp_pfs_ops.c
@@ -10,7 +10,7 @@
#include <stdio.h>
#include <ctype.h>
#include <pwd.h>
-#if defined(__SVR4) || defined(__GLIBC__)
+#if defined(__SVR4) || defined(__GLIBC__) || defined(__NetBSD__)
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
diff --git a/plpnfsd/nfs_prot_svc.c b/plpnfsd/nfs_prot_svc.c
index 4424b20..f1ab702 100644
--- a/plpnfsd/nfs_prot_svc.c
+++ b/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 @@ nfs_program_2(rqstp, transp)
}
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 @@ nfs_program_2(rqstp, transp)
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)) {