summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2014-06-06 14:31:24 +0000
committerchristos <christos@NetBSD.org>2014-06-06 14:31:24 +0000
commit86fc7b6e1adc2c9d37ffb3bc93f26e171b2d56d1 (patch)
treef8019a634839a951def560cd6e1a41342e905a5f /include
parent7a8d8c53d8d65eba085662ffa2d91ca9b3d079af (diff)
Always use the reentrant rpc_createerr. Otherwise every threaded program
that uses rpc needs to define _REENTRANT to work properly. We'll keep compatibility but setting the old variable in the library, but we are not advertising it anymore.
Diffstat (limited to 'include')
-rw-r--r--include/rpc/clnt.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/include/rpc/clnt.h b/include/rpc/clnt.h
index 48707b2b447..190e90c7919 100644
--- a/include/rpc/clnt.h
+++ b/include/rpc/clnt.h
@@ -1,4 +1,4 @@
-/* $NetBSD: clnt.h,v 1.21 2011/08/30 17:06:20 plunky Exp $ */
+/* $NetBSD: clnt.h,v 1.22 2014/06/06 14:31:24 christos Exp $ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -451,14 +451,10 @@ struct rpc_createerr {
struct rpc_err cf_error; /* useful when cf_stat == RPC_PMAPFAILURE */
};
-#ifdef _REENTRANT
__BEGIN_DECLS
extern struct rpc_createerr *__rpc_createerr(void);
__END_DECLS
#define rpc_createerr (*(__rpc_createerr()))
-#else
-extern struct rpc_createerr rpc_createerr;
-#endif /* _REENTRANT */
/*
* The simplified interface: