Problem with conformance test and header files inclusion for ./include/sys/poll.h
Joseph Myers
joseph@codesourcery.com
Thu Oct 31 23:13:00 GMT 2019
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
More information about the Libc-help
mailing list