diff options
| author | joerg <joerg@NetBSD.org> | 2014-04-16 20:39:55 +0000 |
|---|---|---|
| committer | joerg <joerg@NetBSD.org> | 2014-04-16 20:39:55 +0000 |
| commit | 7709dbdfa63fbc53ac4da6e4a2c4c75f259ca423 (patch) | |
| tree | c4c78ea274e7e0fa21495d2648aaf2d56aa0546b /common/lib/libc/string | |
| parent | d7ae0e65229b63ecb165488daf6b3519161e58dc (diff) | |
Undef possible macro versions of memcpy and friends for kernel builds
too. libkern sometimes defines them to the builtins.
Diffstat (limited to 'common/lib/libc/string')
| -rw-r--r-- | common/lib/libc/string/bcopy.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/common/lib/libc/string/bcopy.c b/common/lib/libc/string/bcopy.c index 3ced5b50a50..75a65f60c20 100644 --- a/common/lib/libc/string/bcopy.c +++ b/common/lib/libc/string/bcopy.c @@ -1,4 +1,4 @@ -/* $NetBSD: bcopy.c,v 1.10 2014/04/14 18:18:58 joerg Exp $ */ +/* $NetBSD: bcopy.c,v 1.11 2014/04/16 20:39:55 joerg Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -37,7 +37,7 @@ #if 0 static char sccsid[] = "@(#)bcopy.c 8.1 (Berkeley) 6/4/93"; #else -__RCSID("$NetBSD: bcopy.c,v 1.10 2014/04/14 18:18:58 joerg Exp $"); +__RCSID("$NetBSD: bcopy.c,v 1.11 2014/04/16 20:39:55 joerg Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -51,7 +51,7 @@ __RCSID("$NetBSD: bcopy.c,v 1.10 2014/04/14 18:18:58 joerg Exp $"); #endif #endif -#ifdef _FORTIFY_SOURCE +#if defined(_FORTIFY_SOURCE) || defined(_STANDALONE) || defined(_KERNEL) #undef bcopy #undef memcpy #undef memmove |
