diff options
author | Mathieu Arnold <mat@FreeBSD.org> | 2015-04-03 11:26:48 +0000 |
---|---|---|
committer | Mathieu Arnold <mat@FreeBSD.org> | 2015-04-03 11:26:48 +0000 |
commit | 0438143249634ab5028e53cb468d99a894c62995 (patch) | |
tree | 204c01c7973e83331fc29d8b09e59b3e9f219bd6 /net/wmwlmon/files/patch-wl.c | |
parent | sysutils/jail-primer: update 0.1 -> 0.2 (diff) |
Remove OSVERSION checks that do not make sense any more.
For example (${OSVERSION} >= 900000 && ${OSVERSION} < 900021) is always true,
as is (${OSVERSION} > 900002 || ${OSVERSION} < 900000 && ${OSVERSION} > 800107).
Regarding patches, when an EXTRA_PATCHES is no longer needed, I remove it, when
it is always needed, I renamed it, in one case, I merged two patches.
Differential Revision: https://reviews.freebsd.org/D2209
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 + } + + /* |