aboutsummaryrefslogtreecommitdiffstats
path: root/xen/common/string.c
diff options
context:
space:
mode:
authorkaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk>2003-11-11 12:10:54 +0000
committerkaf24@scramble.cl.cam.ac.uk <kaf24@scramble.cl.cam.ac.uk>2003-11-11 12:10:54 +0000
commit534df3bba622b5698d4339a219854ef52bb91c48 (patch)
tree6508f239c9c801b5ff8df28a3e766c8a7b7b108f /xen/common/string.c
parent3479c52c68ea84e47abfc15882d40bc8a759a17f (diff)
downloadxen-534df3bba622b5698d4339a219854ef52bb91c48.tar.gz
xen-534df3bba622b5698d4339a219854ef52bb91c48.tar.bz2
xen-534df3bba622b5698d4339a219854ef52bb91c48.zip
bitkeeper revision 1.593 (3fb0d1ceZM5ys4sxO5836gfzMM0V9Q)
string.c: Always include a memcpy function in Xen, for weird gcc configs.
Diffstat (limited to 'xen/common/string.c')
-rw-r--r--xen/common/string.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/xen/common/string.c b/xen/common/string.c
index 2ff4efc426..2a8bb66815 100644
--- a/xen/common/string.c
+++ b/xen/common/string.c
@@ -391,7 +391,6 @@ char * bcopy(const char * src, char * dest, int count)
}
#endif
-#ifndef __HAVE_ARCH_MEMCPY
/**
* memcpy - Copy one area of memory to another
* @dest: Where to copy to
@@ -401,6 +400,7 @@ char * bcopy(const char * src, char * dest, int count)
* You should not use this function to access IO space, use memcpy_toio()
* or memcpy_fromio() instead.
*/
+#undef memcpy
void * memcpy(void * dest,const void *src,size_t count)
{
char *tmp = (char *) dest, *s = (char *) src;
@@ -410,7 +410,6 @@ void * memcpy(void * dest,const void *src,size_t count)
return dest;
}
-#endif
#ifndef __HAVE_ARCH_MEMMOVE
/**