Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Fri, 24 Aug 2012 22:04:22 +0200
From: John Spencer <>
Subject: Re: Header testing [Re: Re: dirent.h and __NEED_size_t]

On 08/24/2012 08:23 PM, Rich Felker wrote:
> It would be nice to have a header test suite for this kind of issue.
> Basically, it would attempt compiling an otherwise-empty source file
> for each system header, with each combination of feature test macros,
> to check for errors in any of the cases. We could add -std=c89 to the
> mix too if we want to check for c89-compatibility errors at the same
> time...
> Rich

apart from "inline" there seem to be only 2 problems (at least from a 
quick glance):

#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

arpa/nameser.h should include support for uint16_t

.. and: <nsz> the stdio_ext.h bug is that stdio.h is not included

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.