diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-08-20 21:47:37 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 1998-08-20 21:47:37 +0000 |
commit | ff0f694d466fb114c185bf464811658f97d012f1 (patch) | |
tree | 1eef0becdabdf6a9902d265a84fc9bf9fd9389d5 /cpukit/libnetworking/libc/res_send.c | |
parent | changed version to 980820-BSD (diff) | |
download | rtems-ff0f694d466fb114c185bf464811658f97d012f1.tar.bz2 |
Fixed many warnings.
Diffstat (limited to 'cpukit/libnetworking/libc/res_send.c')
-rw-r--r-- | cpukit/libnetworking/libc/res_send.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/cpukit/libnetworking/libc/res_send.c b/cpukit/libnetworking/libc/res_send.c index cfb1e2eb9d..1b03bb5b1b 100644 --- a/cpukit/libnetworking/libc/res_send.c +++ b/cpukit/libnetworking/libc/res_send.c @@ -99,12 +99,14 @@ static char rcsid[] = "$Id$"; #include "res_config.h" +#if !defined(__rtems__) #ifdef NOPOLL /* libc_r doesn't wrap poll yet() */ static int use_poll = 0; #else static int use_poll = 1; /* adapt to poll() syscall availability */ /* 0 = not present, 1 = try it, 2 = exists */ #endif +#endif static int s = -1; /* socket used for communications */ static int connected = 0; /* is the socket connected */ @@ -375,7 +377,9 @@ res_send(buf, buflen, ans, anssiz) if (v_circuit) { int truncated; +#if !defined(__rtems__) struct iovec iov[2]; +#endif u_short len; u_char *cp; @@ -411,7 +415,7 @@ res_send(buf, buflen, ans, anssiz) * Send length & message */ putshort((u_short)buflen, (u_char*)&len); -#if 0 +#if !defined(__rtems__) iov[0].iov_base = (caddr_t)&len; iov[0].iov_len = INT16SZ; iov[1].iov_base = (caddr_t)buf; @@ -536,8 +540,10 @@ read_len: int msec; #endif struct timeval timeout; +#ifndef NOSELECT fd_set dsmask, *dsmaskp; int dsmasklen; +#endif struct sockaddr_in from; int fromlen; |