Enclosed please find a small patch to compile openssh-2.2.1p1-x.src.rpm  with
glibc-2.1.90: Declare rresvport_af as in /usr/include/netdb.h

diff -urNb openssh-2.1.1p1/bsd-rresvport.c openssh-2.1.1p1_new/bsd-rresvport.c
--- openssh-2.1.1p1/bsd-rresvport.c     Wed Jan 19 03:45:07 2000
+++ openssh-2.1.1p1_new/bsd-rresvport.c Mon Jun 19 19:19:24 2000
@@ -55,7 +55,7 @@
 int
 rresvport_af(alport, af)
        int *alport;
-       int af;
+       sa_family_t af;
 {
        struct sockaddr_storage ss;
        struct sockaddr *sa;
diff -urNb openssh-2.1.1p1/bsd-rresvport.h openssh-2.1.1p1_new/bsd-rresvport.h
--- openssh-2.1.1p1/bsd-rresvport.h     Fri Jan 14 05:45:48 2000
+++ openssh-2.1.1p1_new/bsd-rresvport.h Mon Jun 19 18:57:18 2000
@@ -4,7 +4,7 @@
 #include "config.h"
 
 #ifndef HAVE_RRESVPORT_AF
-int rresvport_af(int *alport, int af);
+int rresvport_af(int *alport, sa_family_t af);
 #endif /* !HAVE_RRESVPORT_AF */
 
 #endif /* _BSD_RRESVPORT_H */

Reply via email to