aboutsummaryrefslogtreecommitdiffstats
path: root/plpnfsd/nfs_prot_svc.c
diff options
context:
space:
mode:
authorThomas Klausner <thomasklausner@users.sourceforge.net>2004-09-08 16:46:04 +0000
committerThomas Klausner <thomasklausner@users.sourceforge.net>2004-09-08 16:46:04 +0000
commit8afe77eca8dce0ad139789e5e21e1419a25bccad (patch)
tree213836fca5b9bfb9c8d9fae06b605b7e6baf65e5 /plpnfsd/nfs_prot_svc.c
parentdb78f396f3de2c2c88ce27bc86751bc06f5c27ef (diff)
downloadplptools-8afe77eca8dce0ad139789e5e21e1419a25bccad.tar.gz
plptools-8afe77eca8dce0ad139789e5e21e1419a25bccad.tar.bz2
plptools-8afe77eca8dce0ad139789e5e21e1419a25bccad.zip
Some portability #ifdefs for NetBSD.
Diffstat (limited to 'plpnfsd/nfs_prot_svc.c')
-rw-r--r--plpnfsd/nfs_prot_svc.c8
1 files changed, 4 insertions, 4 deletions
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)) {