aboutsummaryrefslogtreecommitdiff
path: root/sys/net80211/ieee80211_freebsd.h
diff options
context:
space:
mode:
authorEd Schouten <ed@FreeBSD.org>2009-02-28 16:21:25 +0000
committerEd Schouten <ed@FreeBSD.org>2009-02-28 16:21:25 +0000
commit802cb57e34322fa1ce4a89cfa019d9e2181818d8 (patch)
treed48f20a6281397e8e474df818dbfe4b4795b419e /sys/net80211/ieee80211_freebsd.h
parentb57fd79960c1f05327d4ea570649a6ed33ca0b28 (diff)
downloadsrc-802cb57e34322fa1ce4a89cfa019d9e2181818d8.tar.gz
src-802cb57e34322fa1ce4a89cfa019d9e2181818d8.zip
Add memmove() to the kernel, making the kernel compile with Clang.
When copying big structures, LLVM generates calls to memmove(), because it may not be able to figure out whether structures overlap. This caused linker errors to occur. memmove() is now implemented using bcopy(). Ideally it would be the other way around, but that can be solved in the future. On ARM we don't do add anything, because it already has memmove(). Discussed on: arch@ Reviewed by: rdivacky
Notes
Notes: svn path=/head/; revision=189170
Diffstat (limited to 'sys/net80211/ieee80211_freebsd.h')
-rw-r--r--sys/net80211/ieee80211_freebsd.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/net80211/ieee80211_freebsd.h b/sys/net80211/ieee80211_freebsd.h
index 065d45c5471b..519e37d938fa 100644
--- a/sys/net80211/ieee80211_freebsd.h
+++ b/sys/net80211/ieee80211_freebsd.h
@@ -207,8 +207,6 @@ void ieee80211_vap_destroy(struct ieee80211vap *);
#define time_after_eq(a,b) ((long)(a) - (long)(b) >= 0)
#define time_before_eq(a,b) time_after_eq(b,a)
-#define memmove(dst, src, n) ovbcopy(src, dst, n)
-
struct mbuf *ieee80211_getmgtframe(uint8_t **frm, int headroom, int pktlen);
/* tx path usage */