This is the mail archive of the
java-discuss@sourceware.cygnus.com
mailing list for the Java project.
SunOS4 is missing memmove
- To: java-discuss@sourceware.cygnus.com
- Subject: SunOS4 is missing memmove
- From: Alexandre Oliva <oliva@dcc.unicamp.br>
- Date: 20 Jul 1999 14:49:03 -0300
libjava refuses to configure when memmove is missing. Couldn't we add
this to some header file and skip the MSG_ERROR in configure.in?
#if HAVE_BCOPY && ! HAVE_MEMMOVE
extern inline void *memmove(void *dest, const void *src, size_t n) {
bcopy(src, dest, n);
return dest;
}
#endif
AFAIK, bcopy is supposed to handle overlapping memory regions.
--
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
oliva@{dcc.unicamp.br,guarana.{org,com}} aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
** I may forward mail about projects to mailing lists; please use them