summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/libc/rcmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'cpukit/libnetworking/libc/rcmd.c')
-rw-r--r--cpukit/libnetworking/libc/rcmd.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/cpukit/libnetworking/libc/rcmd.c b/cpukit/libnetworking/libc/rcmd.c
index 542da3f21a..366d67b36e 100644
--- a/cpukit/libnetworking/libc/rcmd.c
+++ b/cpukit/libnetworking/libc/rcmd.c
@@ -53,14 +53,15 @@ static char sccsid[] = "@(#)rcmd.c 8.3 (Berkeley) 3/26/94";
#include <stdio.h>
#include <ctype.h>
#include <string.h>
-#ifdef YP
#include <rpc/rpc.h>
+#ifdef YP
#include <rpcsvc/yp_prot.h>
#include <rpcsvc/ypclnt.h>
#endif
-#include <sys/select.h>
-
+#ifndef __rtems__
+extern int innetgr( const char *, const char *, const char *, const char * );
+#endif
#define max(a, b) ((a > b) ? a : b)
@@ -69,13 +70,10 @@ int rresvport();
#define bzero(a,s) memset((a),0,(s))
#define bcmp memcmp
#define bcopy(s,d,i) memcpy(d,s,i)
-int bindresvport(int, struct sockaddr_in *);
#else /* __rtems__ */
-extern int innetgr __P(( const char *, const char *, const char *, const char * ));
-
-int __ivaliduser __P((FILE *, u_long, const char *, const char *));
-static int __icheckhost __P((u_long, char *));
+int __ivaliduser(FILE *, u_int32_t, const char *, const char *);
+static int __icheckhost(const struct sockaddr *, socklen_t, const char *);
#endif