[Spice-devel] [PATCH] build-sys: use safer SPICE_CONTAINEROF version

Christophe Fergeau cfergeau at redhat.com
Wed Mar 23 13:17:19 UTC 2016


On Wed, Mar 23, 2016 at 01:07:27PM +0000, Frediano Ziglio wrote:
> Enable additional checks for this macro.
> 
> Signed-off-by: Frediano Ziglio <fziglio at redhat.com>
> ---
>  configure.ac | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/configure.ac b/configure.ac
> index f5445c0..c1b1b3a 100644
> --- a/configure.ac
> +++ b/configure.ac
> @@ -82,7 +82,7 @@ dnl =========================================================================
>  dnl Check deps
>  
>  AC_CONFIG_SUBDIRS([spice-common])
> -COMMON_CFLAGS='-I ${top_srcdir}/spice-common/ -I ${top_builddir}/spice-common/'
> +COMMON_CFLAGS='-I ${top_srcdir}/spice-common/ -I ${top_builddir}/spice-common/ -DSPICE_USE_SAFER_CONTAINEROF'

If you change configure.ac, I'd prefer that this goes to config.h
through AC_DEFINE() rather than being hardcoded there.

Christophe
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20160323/ec84649d/attachment.sig>


More information about the Spice-devel mailing list