From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4629 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: stat.h Date: Tue, 4 Mar 2014 00:31:16 -0500 Message-ID: <20140304053116.GH184@brightrain.aerifal.cx> References: <20140303194214.GC7372@port70.net> <20140304042018.GG184@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1393911090 17041 80.91.229.3 (4 Mar 2014 05:31:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 4 Mar 2014 05:31:30 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-4633-gllmg-musl=m.gmane.org@lists.openwall.com Tue Mar 04 06:31:39 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1WKhx5-0004wt-AF for gllmg-musl@plane.gmane.org; Tue, 04 Mar 2014 06:31:39 +0100 Original-Received: (qmail 28375 invoked by uid 550); 4 Mar 2014 05:31:38 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 28367 invoked from network); 4 Mar 2014 05:31:38 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:4629 Archived-At: On Tue, Mar 04, 2014 at 07:18:05AM +0200, Paul Schutte wrote: > Hi > > Hope I am not too anoying ... ;-) > > I have tried both _GNU_SOURCE and _LARGEFILE64_SOURCE and in neither case > do I get a definition for 'struct stat64' > > If I understand correctly then source using 'struct stat64' should be fixed > to use 'struct stat' instead ? > If this is not correct, then 'struct stat64' should probably be added to > as only the following are defined there: > > #if defined(_LARGEFILE64_SOURCE) || defined(_GNU_SOURCE) > #define stat64 stat This defines "struct stat64", which the preprocessor replaces with "struct stat". If that's not working it's because the source file is doing something bogus (like #undef stat64, perhaps). In any case, just fixing the source to use "stat" instead of "stat64" (and likewise for any other *64 mess) is the best approach. Rich