git.samba.org
/
resolv_wrapper.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
9d4dbed
)
tests: Define MIN if not available.
author
Andreas Schneider
<asn@cryptomilk.org>
Fri, 28 Nov 2014 07:49:12 +0000
(08:49 +0100)
committer
Michael Adam
<obnox@samba.org>
Mon, 1 Dec 2014 16:45:54 +0000
(17:45 +0100)
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Reviewed-by: Michael Adam <obnox@samba.org>
tests/test_real_res_query.c
patch
|
blob
|
history
diff --git
a/tests/test_real_res_query.c
b/tests/test_real_res_query.c
index 51436d3e1126cef5f6c396ab0bd825830b5ec120..9c8132a8dc757a016ecd10109daa066e475bffee 100644
(file)
--- 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)