[PATCH] tests: Define MIN if not available.
Michael Adam
obnox at samba.org
Mon Dec 1 09:59:29 MST 2014
Pushed.
On 2014-11-28 at 08:49 +0100, Andreas Schneider wrote:
> 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
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20141201/da7482d5/attachment.pgp>
More information about the samba-technical
mailing list