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.
This commit is contained in:
christos 2014-06-06 14:31:24 +00:00
parent 962ac63d3f
commit af46c9781f
1 changed files with 1 additions and 5 deletions

View File

@ -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: