[prev in list] [next in list] [prev in thread] [next in thread] 

List:       samba-technical
Subject:    Re: [PATCH] tests: Define MIN if not available.
From:       Jakub Hrozek <jakub.hrozek () gmail ! com>
Date:       2014-11-28 18:09:09
Message-ID: CACUxhTXMReDa500hL4pC6XGOX15trVphy+90UXb5BeXcapVO=Q () mail ! gmail ! com
[Download RAW message or body]

Fixes build on Solaris.

ACK

On Fri, Nov 28, 2014 at 8:49 AM, Andreas Schneider <asn@cryptomilk.org> wrote:
> Signed-off-by: Andreas Schneider <asn@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
>
>
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic