diff options
Diffstat (limited to 'net/wmwlmon/files/patch-wl.c')
-rw-r--r-- | net/wmwlmon/files/patch-wl.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/net/wmwlmon/files/patch-wl.c b/net/wmwlmon/files/patch-wl.c new file mode 100644 index 000000000000..01a400729411 --- /dev/null +++ b/net/wmwlmon/files/patch-wl.c @@ -0,0 +1,20 @@ +--- wl.c.orig 2008-05-12 21:42:17.000000000 -0700 ++++ wl.c 2008-05-15 21:27:36.000000000 -0700 +@@ -283,6 +283,7 @@ + int + get_wi_signal(const char *interface) + { ++#if __FreeBSD__ > 600100 && __FreeBSD__ < 700052 /* wi support is broken on 7 because of struct wi_req removal*/ + int s; + struct ifreq ifr; + struct wi_req wreq; +@@ -319,6 +320,9 @@ + #ifdef __FreeBSD__ + return (wreq.wi_val[1]); + #endif ++#else ++ return (-1); ++#endif + } + + /* |