From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/1746 Path: news.gmane.org!not-for-mail From: John Spencer Newsgroups: gmane.linux.lib.musl.general Subject: Re: Header testing [Re: [musl] Re: dirent.h and __NEED_size_t] Date: Fri, 24 Aug 2012 22:48:18 +0200 Message-ID: <5037E892.3040305@barfooze.de> References: <5037A072.5000300@purdue.edu> <20120824182301.GG27715@brightrain.aerifal.cx> <5037DE46.90304@barfooze.de> <20120824201657.GI27715@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1345841073 2849 80.91.229.3 (24 Aug 2012 20:44:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 24 Aug 2012 20:44:33 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-1747-gllmg-musl=m.gmane.org@lists.openwall.com Fri Aug 24 22:44:34 2012 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 1T50k3-0000oU-R1 for gllmg-musl@plane.gmane.org; Fri, 24 Aug 2012 22:44:31 +0200 Original-Received: (qmail 9625 invoked by uid 550); 24 Aug 2012 20:44:30 -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 9617 invoked from network); 24 Aug 2012 20:44:29 -0000 User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.14) Gecko/20110221 SUSE/3.1.8 Mail/1.0 In-Reply-To: <20120824201657.GI27715@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:1746 Archived-At: On 08/24/2012 10:16 PM, Rich Felker wrote: > On Fri, Aug 24, 2012 at 10:04:22PM +0200, John Spencer wrote: >> >> bits/alltypes.h: >> >> #if defined(__NEED_struct_timespec)&& !defined(__DEFINED_struct_timespec) >> struct timespec { time_t tv_sec; long tv_nsec; }; // time_t can be undefined >> #define __DEFINED_struct_timespec >> #endif > It's up to the header requesting timespec to also request time_t. We > could avoid this by just duplicating the underlying type for time_t in > the struct definition; I'm not sure if this would be desirable, since > it might cause errors of omitting time_t from headers that need to > define it to get missed. > in that case, sys/sem.h (which caused the compilation error) needs to be fixed to set __NEED_time_t