From xemacs-m  Tue Feb 18 15:26:00 1997
Received: from jagor.srce.hr (hniksic@jagor.srce.hr [161.53.2.130])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id PAA04827
	for <xemacs-beta@xemacs.org>; Tue, 18 Feb 1997 15:25:58 -0600 (CST)
Received: (from hniksic@localhost)
          by jagor.srce.hr (8.8.5/8.8.4)
	  id WAA12202; Tue, 18 Feb 1997 22:25:57 +0100 (MET)
Sender: hniksic@public.srce.hr
To: xemacs-beta@xemacs.org
Subject: Re: 19.15 b94 build failure, solution and subsequent success
References: <199702181756.MAA02028@verve.canada.sun.com> 	<m2n2t1rj1p.fsf@altair.xemacs.org> <199702182111.NAA04397@xemacs.eng.sun.com>
X-URL: ftp://gnjilux.cc.fer.hr/pub/unix/util/wget/
X-Attribution: Hrv
X-Face: &}4JQk=L;e.~x+|eo]#DGk@x3~ed!.~lZ}YQcYb7f[WL9L'Z*+OyA\nAEL1M(".[qvI#a2E
 6WYI5>>e7'@_)3Ol9p|Nn2wNa/;~06jL*B%tTcn/XvhAu7qeES0\|MF%$;sI#yn1+y"
From: Hrvoje Niksic <hniksic@srce.hr>
Date: 18 Feb 1997 22:25:56 +0100
In-Reply-To: Martin Buchholz's message of Tue, 18 Feb 1997 13:11:11 -0800
Message-ID: <kign2t1ajrv.fsf@jagor.srce.hr>
Lines: 25
X-Mailer: Gnus v5.4.13/XEmacs 19.14

Martin Buchholz <mrb@Eng.Sun.COM> writes:

> I added
> #define __EXTENSIONS__ to 20. sol2.h (not sol2-6.h),
> and changed the gethostname prototype to
> int gethostname(char *, size_t);
> in sol2.h.  This should work on any Solaris system.  Georg?

Why do you declare the arguments in a function?  The GNU Coding
Standards say that, if the function is evil enough to be undeclared,
that it's better to just declare the return value.  This is ANSI
conformant, and wreaks the least havoc -- I think Stallman is right
there.

int gethostname();

is a declaration that I use in my programs, and it works everywhere.
Is there any specific reason why you would want the arguments
declared, when compiling with a C compiler?

-- 
Hrvoje Niksic <hniksic@srce.hr> | Student at FER Zagreb, Croatia
--------------------------------+--------------------------------
"Silence!" cries Freydag. "I did not call thee in for a consultation!" 
"They are my innards! I will not have them misread by a poseur!"

