From 44f5273e028548320823341797c24b9e2ce85c12 Mon Sep 17 00:00:00 2001 From: Ludwig Nussel Date: Sun, 9 Oct 2005 13:06:33 +0000 Subject: [PATCH] ugly: undefine memmove to avoid build failure with gcc fortify extensions enabled --- code/tools/lcc/cpp/unix.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/code/tools/lcc/cpp/unix.c b/code/tools/lcc/cpp/unix.c index a845a609..749736c4 100644 --- a/code/tools/lcc/cpp/unix.c +++ b/code/tools/lcc/cpp/unix.c @@ -92,6 +92,10 @@ setup(int argc, char **argv) /* memmove is defined here because some vendors don't provide it at all and others do a terrible job (like calling malloc) */ +// -- ouch, that hurts -- ln +#ifdef memmove +#undef memmove +#endif void * memmove(void *dp, const void *sp, size_t n) {