wpa_gui-qt4: FTBFS with GCC 4.4: missing #include

GCC 4.4 cleaned up some more C++ headers.  You always have to #include
headers directly and cannot rely for things to be included indirectly.

> g++ -c -pipe -O2 -Wall -W -D_REENTRANT -DCONFIG_CTRL_IFACE
-DCONFIG_CTRL_IFACE_UNIX -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_CORE_LIB -DQT_SHARED
-I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore
-I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtGui
-I/usr/include/qt4 -I. -I.. -I../../src/utils -I../../src/common -I.moc -I.ui -o
.obj/wpagui.o wpagui.cpp
> wpagui.cpp: In constructor 'WpaGui::WpaGui(QWidget*, const char*,
Qt::WFlags)':
> wpagui.cpp:98: error: 'printf' was not declared in this scope

From: Martin Michlmayr <tbm@cyrius.com>
Bug:  http://bugs.debian.org/505041

Signed-off-by: Kel Modderman <kel@otaku42.de>
This commit is contained in:
Martin Michlmayr 2008-11-11 17:36:37 +02:00 committed by Jouni Malinen
parent 46690a3b9b
commit 65db6cad23
3 changed files with 4 additions and 0 deletions

View File

@ -12,6 +12,7 @@
* See README and COPYING for more details.
*/
#include <cstdio>
#include <QMessageBox>
#include "networkconfig.h"

View File

@ -12,6 +12,8 @@
* See README and COPYING for more details.
*/
#include <cstdio>
#include "scanresults.h"
#include "wpagui.h"
#include "networkconfig.h"

View File

@ -17,6 +17,7 @@
#include <unistd.h>
#endif
#include <cstdio>
#include <QMessageBox>
#include <QCloseEvent>