This commit is contained in:
Enrico Weigelt, metux IT service 2009-02-04 00:47:29 +01:00
commit f2a745a47d
4 changed files with 2 additions and 27 deletions

View File

@ -1,6 +1,7 @@
2009-02-03 Enrico Weigelt, metux ITS <weigelt@metux.de>
* lib/mc.lib: added patch on #219 by angel_il
* edit/editcmd.c, configure.ac: removed obsolete own implementation of memove (#242)
2009-02-01 Enrico Weigelt, metux ITS <weigelt@metux.de>

View File

@ -176,7 +176,7 @@ AC_CHECK_FUNCS([\
cfgetospeed \
getegid geteuid getgid getsid getuid \
initgroups isascii \
memcpy memmove memset \
memcpy memset \
putenv \
setreuid setuid statfs strerror strftime sysconf \
tcgetattr tcsetattr truncate \

View File

@ -101,28 +101,6 @@ strcasechr (const char *s, int c)
return s;
}
#ifndef HAVE_MEMMOVE
/* for Christophe */
static void *memmove (void *dest, const void *src, size_t n)
{
char *t;
const char *s;
if (dest <= src) {
t = (char *) dest;
s = (const char *) src;
while (n--)
*t++ = *s++;
} else {
t = (char *) dest + n;
s = (const char *) src + n;
while (n--)
*--t = *--s;
}
return dest;
}
#endif /* !HAVE_MEMMOVE */
/* #define itoa MY_itoa <---- this line is now in edit.h */
static char *
MY_itoa (int i)

View File

@ -647,10 +647,6 @@ extern int errno;
char *strdup(const char *s);
#endif
#ifndef HAVE_MEMMOVE
void *memmove(void *dest,const void *src,int size);
#endif
#ifndef HAVE_INITGROUPS
int initgroups(char *name,gid_t id);
#endif