1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-16 20:23:50 +03:00

r3450: portability fixes

- fix rep_inet_ntoa() for IRIX
 - lib/signal.c needs system/wait.h
 - some systems define a macro "accept", which breaks the lib/socket/ structures.
   use fn_ as a prefix for the structure elements to avoid the problem
This commit is contained in:
Andrew Tridgell
2004-11-02 02:01:04 +00:00
committed by Gerald (Jerry) Carter
parent 6b1f86aea8
commit ced1a0fcdc
8 changed files with 96 additions and 95 deletions

View File

@@ -328,26 +328,26 @@ static int ipv6_tcp_get_fd(struct socket_context *sock)
}
static const struct socket_ops ipv6_tcp_ops = {
.name = "ipv6",
.type = SOCKET_TYPE_STREAM,
.name = "ipv6",
.type = SOCKET_TYPE_STREAM,
.init = ipv6_tcp_init,
.connect = ipv6_tcp_connect,
.listen = ipv6_tcp_listen,
.accept = ipv6_tcp_accept,
.recv = ipv6_tcp_recv,
.send = ipv6_tcp_send,
.close = ipv6_tcp_close,
.fn_init = ipv6_tcp_init,
.fn_connect = ipv6_tcp_connect,
.fn_listen = ipv6_tcp_listen,
.fn_accept = ipv6_tcp_accept,
.fn_recv = ipv6_tcp_recv,
.fn_send = ipv6_tcp_send,
.fn_close = ipv6_tcp_close,
.set_option = ipv6_tcp_set_option,
.fn_set_option = ipv6_tcp_set_option,
.get_peer_name = ipv6_tcp_get_peer_name,
.get_peer_addr = ipv6_tcp_get_peer_addr,
.get_peer_port = ipv6_tcp_get_peer_port,
.get_my_addr = ipv6_tcp_get_my_addr,
.get_my_port = ipv6_tcp_get_my_port,
.fn_get_peer_name = ipv6_tcp_get_peer_name,
.fn_get_peer_addr = ipv6_tcp_get_peer_addr,
.fn_get_peer_port = ipv6_tcp_get_peer_port,
.fn_get_my_addr = ipv6_tcp_get_my_addr,
.fn_get_my_port = ipv6_tcp_get_my_port,
.get_fd = ipv6_tcp_get_fd
.fn_get_fd = ipv6_tcp_get_fd
};
const struct socket_ops *socket_ipv6_ops(void)