[PATCH] fix build with msg_accrights
Jelmer Vernooij
jelmer at samba.org
Mon Jun 16 07:31:37 MDT 2014
Reviewed-By: me
Cheers,
Jelmer
On Sat, Jun 14, 2014 at 01:27:45AM +0200, Michael Adam wrote:
> There was a typo in the check and define for msg_accrights.
>
> Review/push appreciated.
>
> Thanks - Michael
>
> From 8edddb2bedfd9beb462555783bab0a2121c88e25 Mon Sep 17 00:00:00 2001
> From: Michael Adam <obnox at samba.org>
> Date: Sat, 14 Jun 2014 00:55:02 +0200
> Subject: [PATCH] build: fix the test and define for msg_accrights
>
> It must be "msg_accrights" not "msg_acctrights" ...
> ^
>
> Signed-off-by: Michael Adam <obnox at samba.org>
> ---
> source3/modules/vfs_aio_fork.c | 2 +-
> source3/wscript | 10 +++++-----
> 2 files changed, 6 insertions(+), 6 deletions(-)
>
> diff --git a/source3/modules/vfs_aio_fork.c b/source3/modules/vfs_aio_fork.c
> index 97ec1cd..c1bded9 100644
> --- a/source3/modules/vfs_aio_fork.c
> +++ b/source3/modules/vfs_aio_fork.c
> @@ -27,7 +27,7 @@
> #include "lib/async_req/async_sock.h"
> #include "lib/util/tevent_unix.h"
>
> -#if !defined(HAVE_STRUCT_MSGHDR_MSG_CONTROL) && !defined(HAVE_STRUCT_MSGHDR_MSG_ACCTRIGHTS)
> +#if !defined(HAVE_STRUCT_MSGHDR_MSG_CONTROL) && !defined(HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS)
> # error Can not pass file descriptors
> #endif
>
> diff --git a/source3/wscript b/source3/wscript
> index 819ea9b..6e76c86 100644
> --- a/source3/wscript
> +++ b/source3/wscript
> @@ -561,11 +561,11 @@ msg.msg_controllen = sizeof(control_un.control);
> conf.CHECK_CODE('''
> struct msghdr msg;
> int fd;
> -msg.msg_acctrights = (caddr_t) &fd;
> -msg.msg_acctrightslen = sizeof(fd);
> +msg.msg_accrights = (caddr_t) &fd;
> +msg.msg_accrightslen = sizeof(fd);
> ''',
> - 'HAVE_STRUCT_MSGHDR_MSG_ACCTRIGHTS',
> - msg='Checking if we can use msg_acctrights for passing file descriptors',
> + 'HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS',
> + msg='Checking if we can use msg_accrights for passing file descriptors',
> headers='sys/types.h stdlib.h stddef.h sys/socket.h sys/un.h')
>
> if Options.options.with_winbind:
> @@ -1854,7 +1854,7 @@ main() {
> if conf.CONFIG_SET('HAVE_STATFS_F_FSID'):
> default_shared_modules.extend(TO_LIST('vfs_fileid'))
>
> - if (conf.CONFIG_SET('HAVE_STRUCT_MSGHDR_MSG_CONTROL') or conf.CONFIG_SET('HAVE_STRUCT_MSGHDR_MSG_ACCTRIGHTS')):
> + if (conf.CONFIG_SET('HAVE_STRUCT_MSGHDR_MSG_CONTROL') or conf.CONFIG_SET('HAVE_STRUCT_MSGHDR_MSG_ACCRIGHTS')):
> default_shared_modules.extend(TO_LIST('vfs_aio_fork'))
>
> if Options.options.with_pthreadpool:
> --
> 1.9.1
>
More information about the samba-technical
mailing list