summaryrefslogtreecommitdiffstats
path: root/include/protocols
diff options
context:
space:
mode:
authormortimer <mortimer@openbsd.org>2021-01-21 00:16:36 +0000
committermortimer <mortimer@openbsd.org>2021-01-21 00:16:36 +0000
commit9be7043ffd0d162f30fbb5ad6b7f73fc5d6b2819 (patch)
tree7d86c818cf46936e37c767963bb103f340d97b27 /include/protocols
parentAn invalid packet may not have set src and dst in packet descriptor. (diff)
downloadwireguard-openbsd-9be7043ffd0d162f30fbb5ad6b7f73fc5d6b2819.tar.xz
wireguard-openbsd-9be7043ffd0d162f30fbb5ad6b7f73fc5d6b2819.zip
Rearrange variables in dump / restore to handle -fno-common.
Largely following the commit by mckusick in FreeBSD. ok naddy@
Diffstat (limited to 'include/protocols')
-rw-r--r--include/protocols/dumprestore.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/protocols/dumprestore.h b/include/protocols/dumprestore.h
index 9a94a0c9e1e..05b99a7b068 100644
--- a/include/protocols/dumprestore.h
+++ b/include/protocols/dumprestore.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: dumprestore.h,v 1.10 2014/07/11 16:01:40 halex Exp $ */
+/* $OpenBSD: dumprestore.h,v 1.11 2021/01/21 00:16:36 mortimer Exp $ */
/* $NetBSD: dumprestore.h,v 1.14 2005/12/26 19:01:47 perry Exp $ */
/*
@@ -66,7 +66,7 @@
#endif
#define CHECKSUM (int)84446
-union u_spcl {
+extern union u_spcl {
char dummy[TP_BSIZE];
struct s_spcl {
int32_t c_type; /* record type (see below) */