pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/security/merkletree/files merkletree: provide fallback...
details: https://anonhg.NetBSD.org/pkgsrc/rev/58300284f738
branches: trunk
changeset: 383770:58300284f738
user: tnn <tnn%pkgsrc.org@localhost>
date: Mon Aug 22 18:11:39 2022 +0000
description:
merkletree: provide fallback declaration of MIN
diffstat:
security/merkletree/files/libmerkle.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diffs (13 lines):
diff -r 624c4f8fdc73 -r 58300284f738 security/merkletree/files/libmerkle.c
--- a/security/merkletree/files/libmerkle.c Mon Aug 22 18:08:07 2022 +0000
+++ b/security/merkletree/files/libmerkle.c Mon Aug 22 18:11:39 2022 +0000
@@ -41,6 +41,9 @@
#ifndef __UNCONST
#define __UNCONST(a) ((void *)(unsigned long)(const void *)(a))
#endif
+#ifndef MIN
+#define MIN(a,b) (((a)<(b))?(a):(b))
+#endif
/* a row of digests in a merkle tree */
typedef struct merkletree_row_t {
Home |
Main Index |
Thread Index |
Old Index