This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: Problem with conformance test and header files inclusion for ./include/sys/poll.h
- From: Joseph Myers <joseph at codesourcery dot com>
- To: Lukasz Majewski <lukma at denx dot de>
- Cc: "GNU C Library" <libc-alpha at sourceware dot org>, <libc-help at sourceware dot org>
- Date: Thu, 31 Oct 2019 23:13:31 +0000
- Subject: Re: Problem with conformance test and header files inclusion for ./include/sys/poll.h
- Ironport-sdr: TDzJyIMuWEGvlpe39qNzDZULWy0aJBUTwyfLswyydV8URsJ+1qz+a1v7qLgQ/uVspmQnm1XPpC cJXkOcxaHk2QlVY/RtL2T+dRLfJNevNqhOROY7wQYQpzmK5JI+5nQ+oIuTpDyltC5Cf+aqQl2B sNWZ102aCrOtLGK9zPD1YpckvM4SxUJvgJNB/Uty2ot10u+zw5XhC015Tm6dkDBtfCJFOHb7V1 Zo+pCm5JUfGUaaBJTbTLzdbmoWuwTc/qyvIotN1G3QEK3remx/sVJDKKJj03gIaKhe479L6MBQ TRM=
- Ironport-sdr: KLmhb/XRCgwzjG3LDUq4FqE+0izX5bqedrRh9t8l2v0TvlNHl9O8hQPWWUt3R6z3ZJBUcLCfhr rtVFXGWUbRWp6A8/RxOj15tLjuBfIIpAvCiqULxFk+FHzO+yns7Q6EeMesptx4qbYuH3ZNOxxr 8ceLS7ZPHtW8wYKUM4RclY2FbhK9gEBgMRRza4IdwNHo3T01Smzw81DNi9FAcT1+9wEik7639b PMVVIzj6pJHzty5kDchvgJ65r66DsO1WEI4e1D5akrmqWOPXg4o1Voq95PjogzN0QaWS0GjYNX +dw=
- References: <20191101000843.00e86185@jawa>
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