[PATCH] Prevent GCC 6 <cstdlib> from including /usr/include/stdlib.h

Carlos O'Donell carlos@redhat.com
Wed Jun 8 20:03:00 GMT 2016


On 06/08/2016 11:08 AM, Florian Weimer wrote:
> Otherwise, /usr/include/stdlib.h turns up as a make dependency,
> and an implicit rule will kick and make will try to install
> stdlib/stdlib.h as /usr/include/stdlib.h because the target
> is out of date.
> 
> 2016-06-08  Florian Weimer  <fweimer@redhat.com>
> 
> 	Prevent GCC 6 <cstdlib> from including /usr/include/stdlib.h.
> 	* stdlib/tst-quick_exit.cc: Include <stdlib.h> before <cstdlib>.
> 	* stdlib/tst-thread-quick_exit.cc: Likewise.

OK, with source code comment explaining why 'stdlib.h' is being included.

What's going to be our long-term solution to this problem?

-- 
Cheers,
Carlos.



More information about the Libc-alpha mailing list