This is the mail archive of the libc-alpha@sourceware.org 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]
Other format: [Raw text]

[PATCH] Move __svc_accept_failed to the right header


Hi,

Looks like the RPC patch declared __svc_accept_failed in the wrong
header.  It should have been in the internal header
(include/rpm/svc.h) and not the external one (sunrpc/rpc/svc.h).  This
causes a build failure for simple programs as described in the
following bug report:

https://bugzilla.redhat.com/show_bug.cgi?id=882137

Attached patch fixes this.  OK to commit?


Siddhesh

ChangeLog:

	* sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
	* include/rpc/svc.h: ... here.
diff --git a/include/rpc/svc.h b/include/rpc/svc.h
index 141971e..61a8ab3 100644
--- a/include/rpc/svc.h
+++ b/include/rpc/svc.h
@@ -35,4 +35,6 @@ libc_hidden_proto (svcunixfd_create)
 libc_hidden_proto (svc_getreq_common)
 libc_hidden_proto (svc_getreq_poll)
 
+extern void __svc_accept_failed (void) attribute_hidden;
+
 #endif
diff --git a/sunrpc/rpc/svc.h b/sunrpc/rpc/svc.h
index 58a5f7d..ae6d9ac 100644
--- a/sunrpc/rpc/svc.h
+++ b/sunrpc/rpc/svc.h
@@ -333,5 +333,4 @@ extern SVCXPRT *svcunix_create (int __sock, u_int __sendsize, u_int __recvsize,
 
 __END_DECLS
 
-extern void __svc_accept_failed (void) attribute_hidden;
 #endif /* rpc/svc.h */

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