From b625f0b49585254abd35c1014d84e39950e6c77c Mon Sep 17 00:00:00 2001 From: Steve Dickson Date: Thu, 22 Jan 2009 17:47:44 +0000 Subject: [PATCH] Header file fixes for C++ --- libtirpc-0.1.10-C++declares.patch | 38 +++++++++++++++++++++++++++++++ libtirpc.spec | 8 ++++++- 2 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 libtirpc-0.1.10-C++declares.patch diff --git a/libtirpc-0.1.10-C++declares.patch b/libtirpc-0.1.10-C++declares.patch new file mode 100644 index 0000000..e4ebcb7 --- /dev/null +++ b/libtirpc-0.1.10-C++declares.patch @@ -0,0 +1,38 @@ +commit 12129663ddc356aed44434aeda28ff1ce2dfc786 +Author: Sandeep Josh +Date: Thu Jan 22 12:34:19 2009 -0500 + + tirpc header file fixes for C++ + + Added a __THROW to a couple extern declarations. + + Signed-off-by: Steve Dickson + +diff --git a/tirpc/rpc/rpc.h b/tirpc/rpc/rpc.h +index 23e3197..f93479e 100644 +--- a/tirpc/rpc/rpc.h ++++ b/tirpc/rpc/rpc.h +@@ -83,7 +83,7 @@ + + __BEGIN_DECLS + extern int get_myaddress(struct sockaddr_in *); +-extern int bindresvport(int, struct sockaddr_in *); ++extern int bindresvport(int, struct sockaddr_in *) __THROW; + extern int registerrpc(int, int, int, char *(*)(char [UDPMSGSIZE]), + xdrproc_t, xdrproc_t); + extern int callrpc(const char *, int, int, int, xdrproc_t, void *, +diff --git a/tirpc/rpc/rpcent.h b/tirpc/rpc/rpcent.h +index eff86aa..1cee74c 100644 +--- a/tirpc/rpc/rpcent.h ++++ b/tirpc/rpc/rpcent.h +@@ -62,8 +62,8 @@ __BEGIN_DECLS + //extern struct rpcent *getrpcbyname(char *); + //extern struct rpcent *getrpcbynumber(int); + //extern struct rpcent *getrpcent(void); +-extern void setrpcent(int); +-extern void endrpcent(void); ++extern void setrpcent(int) __THROW; ++extern void endrpcent(void) __THROW; + __END_DECLS + + #endif /* !_RPC_CENT_H */ diff --git a/libtirpc.spec b/libtirpc.spec index 6801efd..c5f2025 100644 --- a/libtirpc.spec +++ b/libtirpc.spec @@ -1,6 +1,6 @@ Name: libtirpc Version: 0.1.10 -Release: 1%{?dist} +Release: 2%{?dist} Summary: Transport Independent RPC Library Group: System Environment/Libraries License: SISSL @@ -32,6 +32,7 @@ Requires(devel): pkgconfig man Patch01: libtirpc-0.1.10-dg-unlock.patch Patch02: libtirpc-0.1.10-errmess-unlock.patch +Patch03: libtirpc-0.1.10-C++declares.patch Patch100: libtirpc-0.1.7-compile.patch @@ -43,6 +44,8 @@ developing programs which use the tirpc library. %prep %setup -q %patch01 -p1 +%patch02 -p1 +%patch03 -p1 %patch100 -p1 @@ -141,6 +144,9 @@ rm -rf %{buildroot} %{_mandir}/*/* %changelog +* Thu Jan 22 2009 Steve Dickson 0.1.10-2 +- Header file fixes for C++ + * Thu Nov 20 2008 Steve Dickson 0.1.10-1 - Updated to latest upstream version: 0.1.10