From f05bac3f363569ae1e852145fa7ab29b14774bc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20E=C3=9Fer?= Date: Tue, 22 Sep 2020 14:30:41 +0000 Subject: Fix build with -fno-common portlint complains that the patches have not been generated with makepatch and this caused some effort to generate the patches for this update. I'm leaving the legacy patches and the EXTRA_PATCH as-is to not cause unneccessary churn, but IMHO the patches should be regenerated with makepatch on occasion of the next major change to this port. --- net/honeyd/files/patch-personality.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 net/honeyd/files/patch-personality.h (limited to 'net/honeyd/files/patch-personality.h') diff --git a/net/honeyd/files/patch-personality.h b/net/honeyd/files/patch-personality.h new file mode 100644 index 000000000000..70cece647a58 --- /dev/null +++ b/net/honeyd/files/patch-personality.h @@ -0,0 +1,22 @@ +--- personality.h.orig 2007-05-28 08:12:52.000000000 +0200 ++++ personality.h 2020-09-22 15:57:29.215618000 +0200 +@@ -179,7 +179,8 @@ + void print_perstree(void); + + /* Splay stuff here so other modules can use it */ +-SPLAY_HEAD(perstree, personality) personalities; ++typedef SPLAY_HEAD(perstree, personality) personalities_t; ++extern personalities_t personalities; + static int + perscompare(struct personality *a, struct personality *b) + { +@@ -187,7 +187,8 @@ + } + SPLAY_PROTOTYPE(perstree, personality, node, perscompare); + +-SPLAY_HEAD(xp_fprint_tree, xp_fingerprint) xp_fprints; ++typedef SPLAY_HEAD(xp_fprint_tree, xp_fingerprint) xp_fprints_t; ++extern xp_fprints_t xp_fprints; + static int + xp_fprint_compare(struct xp_fingerprint *a, struct xp_fingerprint *b) + { -- cgit v1.2.3