]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
silence compiler warning
authorMark Andrews <marka@isc.org>
Mon, 15 Aug 2005 02:00:01 +0000 (02:00 +0000)
committerMark Andrews <marka@isc.org>
Mon, 15 Aug 2005 02:00:01 +0000 (02:00 +0000)
lib/bind/resolv/res_send.c

index d0f125bc3fdad367af4eb8cdcb654962bf8cae6e..493fba9b8c953d765b0e852951fabe971fc33031 100644 (file)
@@ -70,7 +70,7 @@
 
 #if defined(LIBC_SCCS) && !defined(lint)
 static const char sccsid[] = "@(#)res_send.c   8.1 (Berkeley) 6/4/93";
-static const char rcsid[] = "$Id: res_send.c,v 1.14 2005/07/28 06:51:51 marka Exp $";
+static const char rcsid[] = "$Id: res_send.c,v 1.15 2005/08/15 02:00:01 marka Exp $";
 #endif /* LIBC_SCCS and not lint */
 
 /*! \file
@@ -109,7 +109,6 @@ static const char rcsid[] = "$Id: res_send.c,v 1.14 2005/07/28 06:51:51 marka Ex
 #include <stropts.h>
 #endif
 #include <poll.h>
-#define pselect Pselect
 #endif /* USE_POLL */
 
 /* Options.  Leave them on. */
@@ -138,7 +137,7 @@ static void         Aerror(const res_state, FILE *, const char *, int,
                               const struct sockaddr *, int);
 static void            Perror(const res_state, FILE *, const char *, int);
 static int             sock_eq(struct sockaddr *, struct sockaddr *);
-#ifdef NEED_PSELECT
+#if defined(NEED_PSELECT) && !defined(USE_POLL)
 static int             pselect(int, void *, void *, void *,
                                struct timespec *,
                                const sigset_t *);
@@ -1067,7 +1066,7 @@ sock_eq(struct sockaddr *a, struct sockaddr *b) {
        }
 }
 
-#ifdef NEED_PSELECT
+#if defined(NEED_PSELECT) && !defined(USE_POLL)
 /* XXX needs to move to the porting library. */
 static int
 pselect(int nfds, void *rfds, void *wfds, void *efds,