Re: [build] Properly test for madvise on Solaris 10 (PR bootstrap/50777)

2011-10-19 Thread Paolo Bonzini
On 10/19/2011 04:17 PM, Rainer Orth wrote: As described in the PR, Solaris 10 bootstrap is currently broken compiling ggc-page.c in stage2 due to no declaration for madvise(). This happens because g++ defines _XOPEN_SOURCE=600, which hides the declaration, and configure doesn't check for a declar

[build] Properly test for madvise on Solaris 10 (PR bootstrap/50777)

2011-10-19 Thread Rainer Orth
As described in the PR, Solaris 10 bootstrap is currently broken compiling ggc-page.c in stage2 due to no declaration for madvise(). This happens because g++ defines _XOPEN_SOURCE=600, which hides the declaration, and configure doesn't check for a declaration at all. The following patch fixes both