[PATCH] scripts: kconfig: qconf.cc: fix a compiliation error when using make xconfig

From: Tiana Rakotovao Andriamahefa
Date: Sat Jan 12 2013 - 21:33:03 EST


When using make xconfig, the following compilation error appears :
/usr/include/qt3/qvaluelist.h:427:13: error: âptrdiff_tâ does not name a type
Including stddef.h in scripts/kconfig/qconf.cc permits to avoid this error.

Signed-off-by: Tiana Rakotovao Andriamahefa <rkmahefa@xxxxxxxxx>
---
scripts/kconfig/qconf.cc | 1 +
1 file changed, 1 insertion(+)

diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc
index df274fe..1500c38 100644
--- a/scripts/kconfig/qconf.cc
+++ b/scripts/kconfig/qconf.cc
@@ -6,6 +6,7 @@
#include <qglobal.h>

#if QT_VERSION < 0x040000
+#include <stddef.h>
#include <qmainwindow.h>
#include <qvbox.h>
#include <qvaluelist.h>
--
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/