Skip to contentSkip to conversation

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

PATCH In review Tiana Rakotovao Andriamahefa 2 participants 2 messages Jan 24, 2013 – Jan 30, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 scripts: kconfig: qconf.cc: fix a compiliation error when using make xconfig

Quoted 9 lines · Michal Marek
Quoted 5 lines · Tiana Rakotovao Andriamahefa

I have checked it and found that the error was effectively fixed in the last maintained upload of Qt3 in 2011. However, the correction is not yet in Wheezy (Debian testing) which I have used for more than a year. It might be included there one day!
This is the case of Debian, but not all distros.

OK. And it is dead upstream. So I'll apply your patch. Could you please resend it? I deleted the email already.

Here is the patch.

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.

---
 scripts/kconfig/qconf.cc |    1 +
 1 file changed, 1 insertion(+)
scripts/kconfig/qconf.cc +1 -0
index df274fe..1500c38 100644
@@ -6,6 +6,7 @@
 #include <qglobal.h>
 
 #if QT_VERSION < 0x040000
+#include <stddef.h>
 #include <qmainwindow.h>
 #include <qvbox.h>
 #include <qvaluelist.h>
Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 11 lines · Tiana Rakotovao Andriamahefa
Quoted 9 lines · Michal Marek
Quoted 5 lines · Tiana Rakotovao Andriamahefa

I have checked it and found that the error was effectively fixed in the last maintained upload of Qt3 in 2011. However, the correction is not yet in Wheezy (Debian testing) which I have used for more than a year. It might be included there one day!
This is the case of Debian, but not all distros.

OK. And it is dead upstream. So I'll apply your patch. Could you please resend it? I deleted the email already.

Quoted 7 lines

Here is the patch.

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.

Thanks, applied to kbuild.git#kconfig.

Michal