summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2017-05-29 12:12:35 +0000
committertedu <tedu@openbsd.org>2017-05-29 12:12:35 +0000
commit0c715902aeffa9c6afdcb10abd5d9ff0b1eb4d61 (patch)
tree896588d5aa2019f8cff7779d32f7a68d5917da42
parentscanner support died some time ago, the header can be removed too. (diff)
downloadwireguard-openbsd-0c715902aeffa9c6afdcb10abd5d9ff0b1eb4d61.tar.xz
wireguard-openbsd-0c715902aeffa9c6afdcb10abd5d9ff0b1eb4d61.zip
clang has builtin_memmove. ok deraadt
-rw-r--r--sys/sys/systm.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sys/sys/systm.h b/sys/sys/systm.h
index 4d2b9395535..5b9dfddceee 100644
--- a/sys/sys/systm.h
+++ b/sys/sys/systm.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: systm.h,v 1.130 2017/05/18 09:15:16 kettenis Exp $ */
+/* $OpenBSD: systm.h,v 1.131 2017/05/29 12:12:35 tedu Exp $ */
/* $NetBSD: systm.h,v 1.50 1996/06/09 04:55:09 briggs Exp $ */
/*-
@@ -341,10 +341,12 @@ extern int (*mountroot)(void);
#define memcmp(b1, b2, n) __builtin_memcmp((b1), (b2), (n))
#define memcpy(d, s, n) __builtin_memcpy((d), (s), (n))
#define memset(b, c, n) __builtin_memset((b), (c), (n))
+#if (defined(__GNUC__) && __GNUC__ >= 4)
+#define memmove(d, s, n) __builtin_memmove((d), (s), (n))
+#endif
#if !defined(__clang__) && (defined(__GNUC__) && __GNUC__ >= 4)
#define bcmp(b1, b2, n) __builtin_bcmp((b1), (b2), (n))
#define bcopy(s, d, n) __builtin_bcopy((s), (d), (n))
-#define memmove(d, s, n) __builtin_memmove((d), (s), (n))
#endif
#if defined(DDB)