summaryrefslogtreecommitdiff
path: root/net/honeyd/files/patch-stats.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-stats.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-stats.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/net/honeyd/files/patch-stats.h b/net/honeyd/files/patch-stats.h
new file mode 100644
index 000000000000..c8f2478a3418
--- /dev/null
+++ b/net/honeyd/files/patch-stats.h
@@ -0,0 +1,31 @@
+--- stats.h.orig 2007-05-28 06:12:52 UTC
++++ stats.h
+@@ -89,10 +89,12 @@ struct stats {
+ reserved:4;
+ };
+
+-enum {
++typedef enum {
+ M_COUNTER, M_TV_START, M_TV_END, M_RECORD, M_MAX
+-} measurement_tags;
++} measurement_tags_t;
+
++extern measurement_tags_t measurement_tags;
++
+ struct measurement {
+ uint32_t counter;
+ struct timeval tv_start;
+@@ -103,9 +105,11 @@ struct measurement {
+ #define SHA1_DIGESTSIZE 20
+ #endif
+
+-enum {
++typedef enum {
+ SIG_NAME, SIG_DIGEST, SIG_DATA, SIG_COMPRESSED_DATA, SIG_MAX
+-} signature_tags;
++} signature_tags_t;
++
++extern signature_tags_t signature_tags;
+
+ struct signature {
+ char *name;