[PATCH] Xext: include dix-config.h

Peter Hutterer peter.hutterer at who-t.net
Wed May 23 20:34:11 PDT 2012


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"
-- 
1.7.10.1



More information about the xorg-devel mailing list