diff mbox

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

Message ID 1359044439-13647-1-git-send-email-rkmahefa@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Tiana Rakotovao Andriamahefa Jan. 24, 2013, 4:20 p.m. UTC
Le jeudi 24 janvier 2013 à 11:36:31, Michal Marek a écrit :
> On 16.1.2013 13:26, Tiana Rakotovao Andriamahefa wrote:
> > 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.

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

Comments

Michal Marek Jan. 30, 2013, 9:17 a.m. UTC | #1
On Thu, Jan 24, 2013 at 04:20:39PM +0000, Tiana Rakotovao Andriamahefa wrote:
> Le jeudi 24 janvier 2013 à 11:36:31, Michal Marek a écrit :
> > On 16.1.2013 13:26, Tiana Rakotovao Andriamahefa wrote:
> > > 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.
> 
> Signed-off-by: Tiana Rakotovao Andriamahefa <rkmahefa@gmail.com>

Thanks, applied to kbuild.git#kconfig.

Michal
--
To unsubscribe from this list: send the line "unsubscribe linux-kbuild" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

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>