summaryrefslogtreecommitdiff
path: root/net/wmwlmon/files/extra-patch-wl.c
diff options
context:
space:
mode:
authorIon-Mihai Tetcu <itetcu@FreeBSD.org>2008-05-10 09:00:09 +0000
committerIon-Mihai Tetcu <itetcu@FreeBSD.org>2008-05-10 09:00:09 +0000
commit2fde66221deb2774fecf9fd36211b60c0b4cc0ed (patch)
tree761396e6ac35c7d412bf54870e42cd095833fceb /net/wmwlmon/files/extra-patch-wl.c
parentUpgrade from 0.42 to 0.43 (diff)
- fix build with gcc 4.2 [1]
- fix build on 7 after wi_req removal (remove support for wi(4)) [2] - unBROKEN [1] - unDEPRECIATE [1] - use REINPALCE_CMD PR: ports/123408 [1], [2] by itetcu@ (me) based on [1] Submitted by: Luke Dean <luked@pobox.com> [1]
Notes
Notes: svn path=/head/; revision=212887
Diffstat (limited to 'net/wmwlmon/files/extra-patch-wl.c')
-rw-r--r--net/wmwlmon/files/extra-patch-wl.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/net/wmwlmon/files/extra-patch-wl.c b/net/wmwlmon/files/extra-patch-wl.c
new file mode 100644
index 000000000000..cae454c749b0
--- /dev/null
+++ b/net/wmwlmon/files/extra-patch-wl.c
@@ -0,0 +1,20 @@
+--- ./wl.c.orig 2006-05-10 06:57:57.000000000 +0300
++++ ./wl.c 2008-05-10 11:03:57.000000000 +0300
+@@ -283,6 +284,7 @@
+ int
+ get_wi_signal(const char *interface)
+ {
++#if __FreeBSD__ > 600100 && __FreeBSD__ < 700047 /* wi support is broken on 7 because of struct wi_req removal*/
+ int s;
+ struct ifreq ifr;
+ struct wi_req wreq;
+@@ -319,6 +321,9 @@
+ #ifdef __FreeBSD__
+ return (wreq.wi_val[1]);
+ #endif
++#else
++ return -1;
++#endif
+ }
+
+ /*