From: Mark Andrews Date: Fri, 12 Aug 2005 01:32:01 +0000 (+0000) Subject: silence compiler warning X-Git-Tag: v9.2.6b1~28^2~52 X-Git-Url: http://git.ipfire.org/gitweb/?a=commitdiff_plain;h=0831e2f4bde972d441b1193891acd7b4ee65e575;p=thirdparty%2Fbind9.git silence compiler warning --- diff --git a/lib/bind/nameser/ns_parse.c b/lib/bind/nameser/ns_parse.c index 7487be39a2c..2c0351970a6 100644 --- a/lib/bind/nameser/ns_parse.c +++ b/lib/bind/nameser/ns_parse.c @@ -16,7 +16,7 @@ */ #ifndef lint -static const char rcsid[] = "$Id: ns_parse.c,v 1.6 2005/04/27 04:56:40 sra Exp $"; +static const char rcsid[] = "$Id: ns_parse.c,v 1.7 2005/08/12 01:32:01 marka Exp $"; #endif /* Import. */ @@ -40,7 +40,12 @@ static void setsection(ns_msg *msg, ns_sect sect); /* Macros. */ +#ifndef SOLARIS2 #define RETERR(err) do { errno = (err); return (-1); } while (0) +#else +#define RETERR(err) \ + do { errno = (err); if (errno == errno) return (-1); } while (0) +#endif /* Public. */