This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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


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 */


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]