Browse Source

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>
Martin Michlmayr 16 years ago
parent
commit
65db6cad23

+ 1 - 0
wpa_supplicant/wpa_gui-qt4/networkconfig.cpp

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

+ 2 - 0
wpa_supplicant/wpa_gui-qt4/scanresults.cpp

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

+ 1 - 0
wpa_supplicant/wpa_gui-qt4/wpagui.cpp

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