PATCH: Add __BEGIN_DECLS/__END_DECLS to sunrpc/rpc/rpc.h

H . J . Lu hjl@lucon.org
Thu Jun 7 14:17:00 GMT 2001


Without it, c++ won't work.


H.J.
----
2001-06-07  H.J. Lu  <hjl@gnu.org>

	* sunrpc/rpc/rpc.h: Add __BEGIN_DECLS/__END_DECLS.

--- sunrpc/rpc/rpc.h.c++	Wed Mar 28 10:45:49 2001
+++ sunrpc/rpc/rpc.h	Thu Jun  7 14:04:32 2001
@@ -67,6 +67,7 @@
 /* routines for parsing /etc/rpc */
 #include <rpc/netdb.h>		/* structures and routines to parse /etc/rpc */
 
+__BEGIN_DECLS
 
 /* Global variables, protected for multi-threaded applications.  */
 extern fd_set *__rpc_thread_svc_fdset (void) __attribute__ ((__const__));
@@ -90,5 +91,7 @@ extern struct pollfd **__rpc_thread_svc_
 
 extern int *__rpc_thread_svc_max_pollfd (void) __attribute__ ((__const__));
 #define svc_max_pollfd (*__rpc_thread_svc_max_pollfd ())
+
+__END_DECLS
 
 #endif /* rpc/rpc.h */



More information about the Libc-alpha mailing list