diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2007-11-24 13:37:26 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2007-11-24 13:37:26 +0000 |
commit | 4224d675249d81ae901be9a8bcd2b140eb884952 (patch) | |
tree | 9800abb80c928f6099201f420affc22639e1d93e /xen/common/string.c | |
parent | 32946b60f1bdfe74552e27651999ae498e6882d4 (diff) | |
download | xen-4224d675249d81ae901be9a8bcd2b140eb884952.tar.gz xen-4224d675249d81ae901be9a8bcd2b140eb884952.tar.bz2 xen-4224d675249d81ae901be9a8bcd2b140eb884952.zip |
Fix non-optimized compilation of Xen's memcmp
Even when using __builtin_memcmp, gcc may emit external references to
memcmp (when not optimizing for instance), so this #define does not
always provide a completely suitable memcmp().
Signed-off-by: Samuel Thibault <samuel.thibault@citrix.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/common/string.c')
-rw-r--r-- | xen/common/string.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/xen/common/string.c b/xen/common/string.c index 562f6cb585..5a357430f1 100644 --- a/xen/common/string.c +++ b/xen/common/string.c @@ -370,6 +370,7 @@ void * memmove(void * dest,const void *src,size_t count) #endif #ifndef __HAVE_ARCH_MEMCMP +#undef memcmp /** * memcmp - Compare two areas of memory * @cs: One area of memory |