From 8afe77eca8dce0ad139789e5e21e1419a25bccad Mon Sep 17 00:00:00 2001 From: Thomas Klausner Date: Wed, 8 Sep 2004 16:46:04 +0000 Subject: Some portability #ifdefs for NetBSD. --- plpnfsd/mp_inode.c | 2 +- plpnfsd/mp_main.c | 2 +- plpnfsd/mp_pfs_ops.c | 2 +- plpnfsd/nfs_prot_svc.c | 8 ++++---- 4 files changed, 7 insertions(+), 7 deletions(-) (limited to 'plpnfsd') 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 #include #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 #include "nfs_prot.h" #include "mp.h" -#if defined (__SVR4) || defined(__sgi) +#if defined (__SVR4) || defined(__sgi) || defined(__NetBSD__) #include /* getenv */ #include /* 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 #include #include -#if defined(__SVR4) || defined(__GLIBC__) +#if defined(__SVR4) || defined(__GLIBC__) || defined(__NetBSD__) #include #include #include 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 #include #endif @@ -16,7 +16,7 @@ #include #include "nfs_prot.h" #include "mp.h" -#ifdef __GLIBC__ +#if defined(__GLIBC__) || defined(__NetBSD__) #include #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)) { -- cgit v1.2.3