This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
PATCH: Add __BEGIN_DECLS/__END_DECLS to sunrpc/rpc/rpc.h
- To: GNU C Library <libc-alpha at sourceware dot cygnus dot com>
- Subject: PATCH: Add __BEGIN_DECLS/__END_DECLS to sunrpc/rpc/rpc.h
- From: "H . J . Lu" <hjl at lucon dot org>
- Date: Thu, 7 Jun 2001 14:17:44 -0700
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 */