summaryrefslogtreecommitdiffstats
path: root/cpukit/libnetworking/libc/rcmd.c
diff options
context:
space:
mode:
authorRalf Corsépius <ralf.corsepius@rtems.org>2012-03-02 09:31:38 +0100
committerRalf Corsépius <ralf.corsepius@rtems.org>2012-03-02 09:40:03 +0100
commit396b80ebf6bc0e21d0128b9e768a8243e32372d8 (patch)
tree6fb309ef2fadeb28127476718ed41216e401f89a /cpukit/libnetworking/libc/rcmd.c
parentPR2028: Milkymist USB: forward MIDI messages. (diff)
downloadrtems-396b80ebf6bc0e21d0128b9e768a8243e32372d8.tar.bz2
2012-03-02 Ralf Corsépius <ralf.corsepius@rtems.org>
* configure.ac: Check for rcmd in unistd.h. * libnetworking/libc/rcmd.c: Build iff rcmd is declared in unistd.h. Change rcmd's decl to match with Linux/FreeBSD's decl.
Diffstat (limited to '')
-rw-r--r--cpukit/libnetworking/libc/rcmd.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/cpukit/libnetworking/libc/rcmd.c b/cpukit/libnetworking/libc/rcmd.c
index d0fb281e1f..99e4f89c49 100644
--- a/cpukit/libnetworking/libc/rcmd.c
+++ b/cpukit/libnetworking/libc/rcmd.c
@@ -37,6 +37,8 @@
#include "config.h"
#endif
+#if HAVE_DECL_RCMD
+
#include <sys/param.h>
#include <sys/socket.h>
#include <sys/stat.h>
@@ -81,7 +83,7 @@ static int __icheckhost(const struct sockaddr *, socklen_t, const char *);
int
rcmd(
char **ahost,
- u_short rport,
+ int rport,
const char *locuser,
const char *remuser,
const char *cmd,
@@ -545,3 +547,4 @@ __icheckhost(raddr, lhost)
return (0);
}
#endif
+#endif