Received: by taz.hyperreal.com (8.6.12/8.6.5) id FAA21777; Mon, 3 Jun 1996 05:22:59 -0700 Received: from epprod.elsevier.co.uk by taz.hyperreal.com (8.6.12/8.6.5) with ESMTP id FAA21771; Mon, 3 Jun 1996 05:22:51 -0700 Received: from snowdon.elsevier.co.uk (snowdon.elsevier.co.uk [193.131.197.164]) by epprod.elsevier.co.uk (8.6.13/8.6.12) with ESMTP id NAA07657 for ; Mon, 3 Jun 1996 13:20:59 +0100 Received: from cadair.elsevier.co.uk (actually host cadair) by snowdon with SMTP (PP); Mon, 3 Jun 1996 13:21:18 +0100 Received: (from dpr@localhost) by cadair.elsevier.co.uk (8.6.12/8.6.12) id NAA29931; Mon, 3 Jun 1996 13:20:46 +0100 Date: Mon, 3 Jun 1996 13:20:46 +0100 Message-Id: <199606031220.NAA29931@cadair.elsevier.co.uk> To: new-httpd@hyperreal.com CC: new-httpd@hyperreal.com In-reply-to: Subject: Re: cvs snapshot. compiler warnings From: Paul Richards X-Attribution: Paul X-Mailer: GNU Emacs [19.30.1], RMAIL, Mailcrypt [3.3] Sender: owner-new-httpd@apache.org Precedence: bulk Reply-To: new-httpd@hyperreal.com >>>>> "rasmus" == rasmus writes: >> I think Apache should compile clean on every supported platform. It >> might be nice to seek neater ways to make it happen, but it has to >> happen. rasmus> If that is the case, how about these ones under Solaris 2.5 rasmus> that have been bugging me for ages but people seemed to agree rasmus> to disagree on how to fix them: rasmus> gcc -c -O2 -DSTATUS -Wall -DSOLARIS2 util.c util.c: In rasmus> function `get_local_host': util.c:1090: warning: implicit rasmus> declaration of function `gethostname' rasmus> There is no prototype for this function on Solaris. The man rasmus> page gives this as the prototype: rasmus> int gethostname(char *name, int namelen); This is part of the BSD compatibility library and shouldn't really be used. We should use 'uname' instead.