diff --git a/wpa_supplicant-1.0-wpagui-getopt.patch b/wpa_supplicant-1.0-wpagui-getopt.patch new file mode 100644 index 0000000..ed1930b --- /dev/null +++ b/wpa_supplicant-1.0-wpagui-getopt.patch @@ -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 +-#endif + + #ifdef CONFIG_NATIVE_WINDOWS + #include diff --git a/wpa_supplicant.spec b/wpa_supplicant.spec index 3e38615..dde4e26 100644 --- a/wpa_supplicant.spec +++ b/wpa_supplicant.spec @@ -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 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