From patchwork Tue Jul 3 02:17:19 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Lippers-Hollmann X-Patchwork-Id: 168669 Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from maxx.maxx.shmoo.com (maxx.shmoo.com [205.134.188.171]) by ozlabs.org (Postfix) with ESMTP id 255AA2C00B1 for ; Tue, 3 Jul 2012 12:17:50 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 2061E9D0D5; Mon, 2 Jul 2012 22:17:48 -0400 (EDT) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WO4MgzSTjUwP; Mon, 2 Jul 2012 22:17:47 -0400 (EDT) Received: from maxx.shmoo.com (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id F318B9D1E5; Mon, 2 Jul 2012 22:17:42 -0400 (EDT) X-Original-To: mailman-post+hostap@maxx.shmoo.com Delivered-To: mailman-post+hostap@maxx.shmoo.com Received: from localhost (localhost [127.0.0.1]) by maxx.maxx.shmoo.com (Postfix) with ESMTP id 6880E9D1E5 for ; Mon, 2 Jul 2012 22:17:41 -0400 (EDT) X-Virus-Scanned: amavisd-new at maxx.shmoo.com Received: from maxx.maxx.shmoo.com ([127.0.0.1]) by localhost (maxx.shmoo.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id yWBMqT1mpHW5 for ; Mon, 2 Jul 2012 22:17:36 -0400 (EDT) Received: from mo-p05-ob.rzone.de (mo-p05-ob.rzone.de [81.169.146.180]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by maxx.maxx.shmoo.com (Postfix) with ESMTPS id 35E4B9D0D5 for ; Mon, 2 Jul 2012 22:17:36 -0400 (EDT) X-RZG-AUTH: :OmsBZ2C7d7IBoB6EHwegNiRqgfQXlaD5PlBebH2tU4xZA+UWnUv/IAE= X-RZG-CLASS-ID: mo05 Received: from mir (p4FCB1CCE.dip.t-dialin.net [79.203.28.206]) by smtp.strato.de (josoe mo29) (RZmta 29.19 DYNA|AUTH) with ESMTPA id u02f3ao62LuhRt ; Tue, 3 Jul 2012 04:17:34 +0200 (CEST) Received: from mir.localnet (mir.lan [192.168.10.1]) by mir (Postfix) with ESMTP id 5FA65D83; Tue, 3 Jul 2012 04:17:25 +0200 (CEST) From: "Stefan Lippers-Hollmann" To: hostap@lists.shmoo.com Subject: [PATCH] wpa_gui: fix FTBFS with gcc/g++ 4.7 Date: Tue, 3 Jul 2012 04:17:19 +0200 User-Agent: KMail/1.13.7 (Linux/3.4-4.slh.2-aptosid-686; KDE/4.8.4; i686; ; ) References: In-Reply-To: MIME-Version: 1.0 Message-Id: <201207030417.24685.s.L-H@gmx.de> X-BeenThere: hostap@lists.shmoo.com X-Mailman-Version: 2.1.9 Precedence: list List-Id: HostAP Project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: hostap-bounces@lists.shmoo.com Errors-To: hostap-bounces@lists.shmoo.com g++ -c -m64 -pipe -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2 -D_FORTIFY_SOURCE=2 -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++-64 -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -I.. -I../../src -I../../src/utils -I.moc -I.ui -o .obj/wpagui.o wpagui.cpp wpagui.cpp: In member function 'virtual void WpaGui::parse_argv()': wpagui.cpp:246:49: error: 'getopt' was not declared in this scope wpagui.cpp:252:24: error: 'optarg' was not declared in this scope make[2]: *** [.obj/wpagui.o] Error 1 From: Cyril Brulebois Signed-off-by: Stefan Lippers-Hollmann intended-for: hostap-1 --- Debian bug #667416, http://bugs.debian.org/667416 successfully built on all Debian architectures: https://buildd.debian.org/status/logs.php?pkg=wpa&ver=1.0-2 wpa_supplicant/wpa_gui-qt4/wpagui.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/wpa_supplicant/wpa_gui-qt4/wpagui.cpp b/wpa_supplicant/wpa_gui-qt4/wpagui.cpp index 46cfc8f..42e14f0 100644 --- a/wpa_supplicant/wpa_gui-qt4/wpagui.cpp +++ b/wpa_supplicant/wpa_gui-qt4/wpagui.cpp @@ -6,16 +6,12 @@ * See README for more details. */ -#ifdef __MINGW32__ -/* Need to get getopt() */ -#include -#endif - #ifdef CONFIG_NATIVE_WINDOWS #include #endif /* CONFIG_NATIVE_WINDOWS */ #include +#include #include #include #include