2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-09-01 15:05:23 +00:00

add isc_socket_getfd() on win32 side

This commit is contained in:
Evan Hunt
2011-08-23 18:24:33 +00:00
parent cd500de32e
commit 6c18c134c8

View File

@@ -15,7 +15,7 @@
* PERFORMANCE OF THIS SOFTWARE. * PERFORMANCE OF THIS SOFTWARE.
*/ */
/* $Id: socket.c,v 1.91 2011/08/23 17:02:53 each Exp $ */ /* $Id: socket.c,v 1.92 2011/08/23 18:24:33 each Exp $ */
/* This code uses functions which are only available on Server 2003 and /* This code uses functions which are only available on Server 2003 and
* higher, and Windows XP and higher. * higher, and Windows XP and higher.
@@ -3826,6 +3826,11 @@ isc__socket_gettag(isc_socket_t *socket) {
return (socket->tag); return (socket->tag);
} }
int
isc__socket_getfd(isc_socket_t *socket) {
return ((short) socket->fd);
}
void void
isc__socketmgr_setreserved(isc_socketmgr_t *manager, isc_uint32_t reserved) { isc__socketmgr_setreserved(isc_socketmgr_t *manager, isc_uint32_t reserved) {
UNUSED(manager); UNUSED(manager);