[PATCH] tests: Define MIN if not available.

Jakub Hrozek jakub.hrozek at gmail.com
Fri Nov 28 11:09:09 MST 2014


Fixes build on Solaris.

ACK

On Fri, Nov 28, 2014 at 8:49 AM, Andreas Schneider <asn at cryptomilk.org> 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
>
>


More information about the samba-technical mailing list