Commit a1f674e3 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

scm: common -- Hide struct fd_opts argument

When SCM_FDSET_HAS_OPTS is not set the scm-code.c
can't be built because it declares struct fd_opts
in parameters. Lets rather hide this type and
allow to build without SCM_FDSET_HAS_OPTS definition.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 187377a5
......@@ -118,7 +118,11 @@ int send_fds(int sock, struct sockaddr_un *saddr, int len,
return 0;
}
#ifdef SCM_FDSET_HAS_OPTS
int recv_fds(int sock, int *fds, int nr_fds, struct fd_opts *opts)
#else
int recv_fds(int sock, int *fds, int nr_fds, char *opts)
#endif
{
struct scm_fdset fdset;
struct cmsghdr *cmsg;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment