Need <unistd.h> for getopt()

This commit is contained in:
Dan Williams 2012-01-10 16:30:05 -06:00
parent 28f5ec3c55
commit 0d7a886129
2 changed files with 17 additions and 0 deletions

View File

@ -0,0 +1,14 @@
diff -up wpa_supplicant-1.0-rc1/wpa_supplicant/wpa_gui-qt4/wpagui.cpp.getopt wpa_supplicant-1.0-rc1/wpa_supplicant/wpa_gui-qt4/wpagui.cpp
--- wpa_supplicant-1.0-rc1/wpa_supplicant/wpa_gui-qt4/wpagui.cpp.getopt 2012-01-10 16:28:43.451307760 -0600
+++ wpa_supplicant-1.0-rc1/wpa_supplicant/wpa_gui-qt4/wpagui.cpp 2012-01-10 16:28:53.999175893 -0600
@@ -12,10 +12,7 @@
* See README and COPYING for more details.
*/
-#ifdef __MINGW32__
-/* Need to get getopt() */
#include <unistd.h>
-#endif
#ifdef CONFIG_NATIVE_WINDOWS
#include <windows.h>

View File

@ -33,6 +33,8 @@ Patch4: wpa_supplicant-squelch-driver-disconnect-spam.patch
Patch5: wpa_supplicant-openssl-more-algs.patch
# distro specific customization for Qt4 build tools, not suitable for upstream
Patch6: wpa_supplicant-gui-qt4.patch
# Need <unistd.h> for getopt
Patch7: wpa_supplicant-1.0-wpagui-getopt.patch
# Dirty hack for WiMAX
# http://linuxwimax.org/Download?action=AttachFile&do=get&target=wpa-1.5-README.txt
Patch100: wpa_supplicant-0.7.2-generate-libeap-peer.patch
@ -96,6 +98,7 @@ Don't use this unless you know what you're doing.
%patch4 -p1 -b .disconnect-spam
%patch5 -p1 -b .more-openssl-algs
%patch6 -p1 -b .qt4
%patch7 -p1 -b .getopt
%build
pushd wpa_supplicant