]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
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 46cfc8f2b9c9ae84e2ee919109cca5f30e75bc1f..42e14f01f2b93b7428f19c61beee0f8c76227b88 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>