Module Name:    src
Committed By:   christos
Date:           Fri Jun  6 14:31:24 UTC 2014

Modified Files:
        src/include/rpc: clnt.h

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/include/rpc/clnt.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/include/rpc/clnt.h
diff -u src/include/rpc/clnt.h:1.21 src/include/rpc/clnt.h:1.22
--- src/include/rpc/clnt.h:1.21	Tue Aug 30 13:06:20 2011
+++ src/include/rpc/clnt.h	Fri Jun  6 10:31:24 2014
@@ -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:

Reply via email to