summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2012-01-28 20:03:34 +0300
committerIgor Pashev <pashev.igor@gmail.com>2012-01-28 20:03:34 +0300
commitc34dcde2b1a282071de316f03f4dec4a12efc73b (patch)
tree68bf35af2de003f33d26d153f744cd746a9458cc
parent42fd58e580a99e15d5c647f13fe316af1ce8e1fa (diff)
downloadlibbsd-c34dcde2b1a282071de316f03f4dec4a12efc73b.tar.gz
Missing MIN(a, b) macro
-rw-r--r--src/hash/helper.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/hash/helper.c b/src/hash/helper.c
index fe3f3e7..f0f5a17 100644
--- a/src/hash/helper.c
+++ b/src/hash/helper.c
@@ -22,6 +22,10 @@
#include <hashinc>
+#ifndef MIN
+#define MIN(a, b) ((a) > (b) ? (b) : (a))
+#endif
+
/* ARGSUSED */
char *
HASHEnd(HASH_CTX *ctx, char *buf)