Header file fixes for C++

This commit is contained in:
Steve Dickson 2009-01-22 17:47:44 +00:00
parent 0dcc74c627
commit b625f0b495
2 changed files with 45 additions and 1 deletions

View File

@ -0,0 +1,38 @@
commit 12129663ddc356aed44434aeda28ff1ce2dfc786
Author: Sandeep Josh <sdjres@yahoo.com>
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 <steved@redhat.com>
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 */

View File

@ -1,6 +1,6 @@
Name: libtirpc Name: libtirpc
Version: 0.1.10 Version: 0.1.10
Release: 1%{?dist} Release: 2%{?dist}
Summary: Transport Independent RPC Library Summary: Transport Independent RPC Library
Group: System Environment/Libraries Group: System Environment/Libraries
License: SISSL License: SISSL
@ -32,6 +32,7 @@ Requires(devel): pkgconfig man
Patch01: libtirpc-0.1.10-dg-unlock.patch Patch01: libtirpc-0.1.10-dg-unlock.patch
Patch02: libtirpc-0.1.10-errmess-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 Patch100: libtirpc-0.1.7-compile.patch
@ -43,6 +44,8 @@ developing programs which use the tirpc library.
%prep %prep
%setup -q %setup -q
%patch01 -p1 %patch01 -p1
%patch02 -p1
%patch03 -p1
%patch100 -p1 %patch100 -p1
@ -141,6 +144,9 @@ rm -rf %{buildroot}
%{_mandir}/*/* %{_mandir}/*/*
%changelog %changelog
* Thu Jan 22 2009 Steve Dickson <steved@redhat.com> 0.1.10-2
- Header file fixes for C++
* Thu Nov 20 2008 Steve Dickson <steved@redhat.com> 0.1.10-1 * Thu Nov 20 2008 Steve Dickson <steved@redhat.com> 0.1.10-1
- Updated to latest upstream version: 0.1.10 - Updated to latest upstream version: 0.1.10