[PATCH, libstdc++]: Fix configure check for linux/random.h

Jonathan Wakely jwakely@redhat.com
Thu Jan 18 20:01:00 GMT 2018


On 18/01/18 20:31 +0100, Uros Bizjak wrote:
>Hello!
>
>linux/random.h uses __u32 types, which are defined through inclusion
>of linux/types.h header. On some older systems (e.g. CentOS 5.11)
>linux/random.h doesn't include linux/types.h by itself, and configure
>declares found linux/random.h as unusable.
>
>Attached patch fixes detection by including linux/types.h in the
>configure check.
>
>2018-01-18  Uros Bizjak  <ubizjak@gmail.com>
>
>    * configure.ac (AC_CHECK_HEADERS): Add linux/types.h.  Conditionally
>    include linux/types.h when checking linux/random.h header.
>    * config.h.in: Regenerate.
>    * configure: Ditto.
>    * src/c++11/random.cc: Conditionally include linux/types.h.
>
>Patch was bootstrapped and regression tested on x86_64-linux-gnu
>{,-m32} CentOS 5.11 and Fedora 26.
>
>OK for mainline?

OK, thanks.




More information about the Gcc-patches mailing list