summaryrefslogtreecommitdiffstats
path: root/source/lib/socket/socket_unix.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-11-02 02:01:04 +0000
committerAndrew Tridgell <tridge@samba.org>2004-11-02 02:01:04 +0000
commitcb242812b57ca9976376cb284c97e0be4f39a6f5 (patch)
tree56c4d127cb81722846a23957f6b17c73365209f9 /source/lib/socket/socket_unix.c
parent3595bac712c4dfb277a9790cf9523c76580c5716 (diff)
downloadsamba-cb242812b57ca9976376cb284c97e0be4f39a6f5.tar.gz
samba-cb242812b57ca9976376cb284c97e0be4f39a6f5.tar.xz
samba-cb242812b57ca9976376cb284c97e0be4f39a6f5.zip
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
Diffstat (limited to 'source/lib/socket/socket_unix.c')
-rw-r--r--source/lib/socket/socket_unix.c40
1 files changed, 20 insertions, 20 deletions
diff --git a/source/lib/socket/socket_unix.c b/source/lib/socket/socket_unix.c
index d160d897ee2..f09573802a0 100644
--- a/source/lib/socket/socket_unix.c
+++ b/source/lib/socket/socket_unix.c
@@ -246,26 +246,26 @@ static int unixdom_get_fd(struct socket_context *sock)
}
static const struct socket_ops unixdom_ops = {
- .name = "unix",
- .type = SOCKET_TYPE_STREAM,
-
- .init = unixdom_init,
- .connect = unixdom_connect,
- .listen = unixdom_listen,
- .accept = unixdom_accept,
- .recv = unixdom_recv,
- .send = unixdom_send,
- .close = unixdom_close,
-
- .set_option = unixdom_set_option,
-
- .get_peer_name = unixdom_get_peer_name,
- .get_peer_addr = unixdom_get_peer_addr,
- .get_peer_port = unixdom_get_peer_port,
- .get_my_addr = unixdom_get_my_addr,
- .get_my_port = unixdom_get_my_port,
-
- .get_fd = unixdom_get_fd
+ .name = "unix",
+ .type = SOCKET_TYPE_STREAM,
+
+ .fn_init = unixdom_init,
+ .fn_connect = unixdom_connect,
+ .fn_listen = unixdom_listen,
+ .fn_accept = unixdom_accept,
+ .fn_recv = unixdom_recv,
+ .fn_send = unixdom_send,
+ .fn_close = unixdom_close,
+
+ .fn_set_option = unixdom_set_option,
+
+ .fn_get_peer_name = unixdom_get_peer_name,
+ .fn_get_peer_addr = unixdom_get_peer_addr,
+ .fn_get_peer_port = unixdom_get_peer_port,
+ .fn_get_my_addr = unixdom_get_my_addr,
+ .fn_get_my_port = unixdom_get_my_port,
+
+ .fn_get_fd = unixdom_get_fd
};
const struct socket_ops *socket_unixdom_ops(void)