summaryrefslogtreecommitdiff
path: root/net/honeyd/files/patch-personality.h
diff options
context:
space:
mode:
authorStefan Eßer <se@FreeBSD.org>2020-09-22 14:30:41 +0000
committerStefan Eßer <se@FreeBSD.org>2020-09-22 14:30:41 +0000
commitf05bac3f363569ae1e852145fa7ab29b14774bc4 (patch)
tree2534a13f0fb56d51506eebd563d34413eb729700 /net/honeyd/files/patch-personality.h
parentports-mgmt/pkg: Update to 1.15.6 (diff)
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.
Diffstat (limited to '')
-rw-r--r--net/honeyd/files/patch-personality.h22
1 files changed, 22 insertions, 0 deletions
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)
+ {