[PATCH] Xext: include dix-config.h

Alan Coopersmith alan.coopersmith at oracle.com
Wed May 23 21:43:01 PDT 2012


On 05/23/12 08:34 PM, Peter Hutterer wrote:
> silences
> In file included from ../include/misc.h:111:0, from hashtable.c:2:
> ./include/os.h:559:1: warning: redundant redeclaration of 'strndup' [-Wredundant-decls]
> 
> Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
> ---
>  Xext/hashtable.c |    4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/Xext/hashtable.c b/Xext/hashtable.c
> index 2adf92e..9d9ef89 100644
> --- a/Xext/hashtable.c
> +++ b/Xext/hashtable.c
> @@ -1,3 +1,7 @@
> +#ifdef HAVE_DIX_CONFIG_H
> +#include <dix-config.h>
> +#endif
> +
>  #include <stdlib.h>
>  #include "misc.h"
>  #include "hashtable.h"

Reviewed-by: Alan Coopersmith <alan.coopersmith at oracle.com>

-- 
	-Alan Coopersmith-              alan.coopersmith at oracle.com
	 Oracle Solaris Engineering - http://blogs.oracle.com/alanc


More information about the xorg-devel mailing list