summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormiod <miod@openbsd.org>2012-11-15 21:42:23 +0000
committermiod <miod@openbsd.org>2012-11-15 21:42:23 +0000
commit1a068bbc5df24a2c13f7dcae04747ca16c864411 (patch)
tree3af008f53bffb0c03c7d8dbcccf9710e6c53e262
parentIf max-prefix/restart are used, display the values in "bgpctl sh nei" output. (diff)
downloadwireguard-openbsd-1a068bbc5df24a2c13f7dcae04747ca16c864411.tar.xz
wireguard-openbsd-1a068bbc5df24a2c13f7dcae04747ca16c864411.zip
Make this cross-compile friendly by defining ATTRIBUTE_UNUSED to an empty
string if not defined already, when cross-compiling. (curse words censored)
-rw-r--r--gnu/usr.bin/gcc/gcc/config/m88k/openbsd.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gnu/usr.bin/gcc/gcc/config/m88k/openbsd.h b/gnu/usr.bin/gcc/gcc/config/m88k/openbsd.h
index 94a560dd097..dc737c46f6c 100644
--- a/gnu/usr.bin/gcc/gcc/config/m88k/openbsd.h
+++ b/gnu/usr.bin/gcc/gcc/config/m88k/openbsd.h
@@ -88,6 +88,9 @@ Boston, MA 02111-1307, USA. */
0, VOIDmode, 2, (TRAMP), Pmode, \
GEN_INT (TRAMPOLINE_SIZE), Pmode)
+#if defined(CROSS_COMPILE) && !defined(ATTRIBUTE_UNUSED)
+#define ATTRIBUTE_UNUSED
+#endif
#undef TRANSFER_FROM_TRAMPOLINE
#define TRANSFER_FROM_TRAMPOLINE \
extern void __dcache_sync(int, int); \