summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authorbrad <brad@openbsd.org>2008-05-11 05:03:03 +0000
committerbrad <brad@openbsd.org>2008-05-11 05:03:03 +0000
commit2fee6051ff4083d0a90843e23978fbd36c9a2e01 (patch)
treebaa508ab9b4b52cbd4f8ec0f464bf8f88896ebe5 /lib/libc
parentTry harder to avoid corrupting the mbuf pool. Stuff any mbuf chain in (diff)
downloadwireguard-openbsd-2fee6051ff4083d0a90843e23978fbd36c9a2e01.tar.xz
wireguard-openbsd-2fee6051ff4083d0a90843e23978fbd36c9a2e01.zip
garbage collect the portability bits for the removed select() support.
ok djm@ deraadt@
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/net/res_send.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/lib/libc/net/res_send.c b/lib/libc/net/res_send.c
index 187210cbd87..09b13858925 100644
--- a/lib/libc/net/res_send.c
+++ b/lib/libc/net/res_send.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: res_send.c,v 1.20 2008/04/18 21:36:32 djm Exp $ */
+/* $OpenBSD: res_send.c,v 1.21 2008/05/11 05:03:03 brad Exp $ */
/*
* ++Copyright++ 1985, 1989, 1993
@@ -91,16 +91,6 @@ static int connected = 0; /* is the socket connected */
static int vc = 0; /* is the socket a virtual ciruit? */
static int af = 0; /* address family of socket */
-#ifndef FD_SET
-/* XXX - should be in portability.h */
-#define NFDBITS 32
-#define FD_SETSIZE 32
-#define FD_SET(n, p) ((p)->fds_bits[(n)/NFDBITS] |= (1 << ((n) % NFDBITS)))
-#define FD_CLR(n, p) ((p)->fds_bits[(n)/NFDBITS] &= ~(1 << ((n) % NFDBITS)))
-#define FD_ISSET(n, p) ((p)->fds_bits[(n)/NFDBITS] & (1 << ((n) % NFDBITS)))
-#define FD_ZERO(p) bzero((char *)(p), sizeof(*(p)))
-#endif
-
#define CAN_RECONNECT 1
#ifndef DEBUG