[PATCH] tests: Define MIN if not available.

Andreas Schneider asn at cryptomilk.org
Fri Nov 28 00:49:12 MST 2014


Signed-off-by: Andreas Schneider <asn at cryptomilk.org>
---
 tests/test_real_res_query.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/tests/test_real_res_query.c b/tests/test_real_res_query.c
index 51436d3..9c8132a 100644
--- a/tests/test_real_res_query.c
+++ b/tests/test_real_res_query.c
@@ -33,6 +33,10 @@
 #include <arpa/inet.h>
 #include <resolv.h>
 
+#ifndef MIN
+#define MIN(a,b) ((a)<(b)?(a):(b))
+#endif
+
 #define ANSIZE 256
 
 static void print_asc(const uint8_t *buf, uint32_t len)
-- 
1.9.3




More information about the samba-technical mailing list