wpa_gui: Fix compilation with gcc/g++ 4.7
authorCyril Brulebois <kibi@debian.org>
Wed, 4 Jul 2012 18:01:04 +0000 (21:01 +0300)
committerJouni Malinen <j@w1.fi>
Wed, 4 Jul 2012 18:01:04 +0000 (21:01 +0300)
Signed-off-by: Stefan Lippers-Hollmann <s.l-h@gmx.de>
intended-for: hostap-1

wpa_supplicant/wpa_gui-qt4/wpagui.cpp

index 46cfc8f..42e14f0 100644 (file)
@@ -6,16 +6,12 @@
  * See README for more details.
  */
 
-#ifdef __MINGW32__
-/* Need to get getopt() */
-#include <unistd.h>
-#endif
-
 #ifdef CONFIG_NATIVE_WINDOWS
 #include <windows.h>
 #endif /* CONFIG_NATIVE_WINDOWS */
 
 #include <cstdio>
+#include <unistd.h>
 #include <QMessageBox>
 #include <QCloseEvent>
 #include <QImageReader>