This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problem with conformance test and header files inclusion for ./include/sys/poll.h


On Fri, 1 Nov 2019, Lukasz Majewski wrote:

> This seems to be caused by adding 
> 
> # include <time.h>     (or even #include <include/time.h>)   [*]
> # include <signal.h>   (or even #include <include/signal.h>) [*]

Everything in an include/ header other than the include of the 
corresponding public header needs to be inside "#ifndef _ISOMAC".

> [****] - A bit off topic: What is the purpose of -D_ISOMAC define? It
> can be found in glibc's sources in several places (e.g. # ifndef
> _ISOMAC). 

The purpose is to cause the include/ header wrappers to define only what 
the installed headers would define, not anything internal to glibc.  This 
is used by most tests (all except those in tests-internal), including the 
header conformance ones.

-- 
Joseph S. Myers
joseph@codesourcery.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]