summaryrefslogtreecommitdiff
path: root/kerberosIV/kadm/kadm_stream.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-12-10 10:37:10 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-12-10 10:37:10 +0000
commit72d902397f6832e748a19e8a61df13c98688e8e7 (patch)
tree8bb0db6914d8966be456f23c4c1e1db8379dead3 /kerberosIV/kadm/kadm_stream.c
parent05c63af69d620a1f98564ed2d8558f0fceb966f9 (diff)
do not assume min() is defined
Diffstat (limited to 'kerberosIV/kadm/kadm_stream.c')
-rw-r--r--kerberosIV/kadm/kadm_stream.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/kerberosIV/kadm/kadm_stream.c b/kerberosIV/kadm/kadm_stream.c
index e06d0fefd0a..58f53cce124 100644
--- a/kerberosIV/kadm/kadm_stream.c
+++ b/kerberosIV/kadm/kadm_stream.c
@@ -123,6 +123,10 @@ vts_long(u_int32_t dat, u_char **st, int loc)
return 4;
}
+#ifndef min
+#define min(a,b) (a < b ? a : b)
+#endif
+
int
stv_string(u_char *st, /* base pointer to the stream */
char *dat, /* a string to read from the stream */