[wpa_supplicant] Need <unistd.h> for getopt()
Daniel Williams
dcbw at fedoraproject.org
Tue Jan 10 22:29:58 UTC 2012
commit 0d7a8861293a6b5d947f59982e4566102991342b
Author: Dan Williams <dcbw at redhat.com>
Date: Tue Jan 10 16:30:05 2012 -0600
Need <unistd.h> for getopt()
wpa_supplicant-1.0-wpagui-getopt.patch | 14 ++++++++++++++
wpa_supplicant.spec | 3 +++
2 files changed, 17 insertions(+), 0 deletions(-)
---
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 <unistd.h>
+-#endif
+
+ #ifdef CONFIG_NATIVE_WINDOWS
+ #include <windows.h>
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 <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
More information about the scm-commits
mailing list