Samuel Thibault, on Wed 04 May 2016 17:29:48 +0200, wrote: > The gcc-6 build failed. I see that one of the change is: > > - -- From: /usr/include/unistd.h __getpagesize or getpagesize?? > - function Get_Page_Size return int; > + -- From: /usr/include/i386-gnu/bits/shm.h __getpagesize or getpagesize?? > + function Get_Page_Size return size_t; > + function Get_Page_Size return Address; > > Why using size_t and Address? Other OSes use int, and the prototype for > getpagesize is returning int. > > Also, don't use the __ versions of the glibc functions, they are > internal aliases, the API is without __.
I.e. the proposed change below. Samuel 2016-05-04 Samuel Thibault <samuel.thiba...@ens-lyon.org> * s-osinte-gnu.ads: Make Get_Page_Size return int, and make it use getpagesize instead of __getpagesize. --- a/src/gcc/ada/s-osinte-gnu.ads +++ b/src/gcc/ada/s-osinte-gnu.ads @@ -344,10 +344,9 @@ package System.OS_Interface is -- returns the stack base of the specified thread. Only call this function -- when Stack_Base_Available is True. - -- From: /usr/include/i386-gnu/bits/shm.h __getpagesize or getpagesize?? - function Get_Page_Size return size_t; - function Get_Page_Size return Address; - pragma Import (C, Get_Page_Size, "__getpagesize"); + -- From: /usr/include/i386-gnu/bits/shm.h + function Get_Page_Size return int; + pragma Import (C, Get_Page_Size, "getpagesize"); -- Returns the size of a page -- From /usr/include/i386-gnu/bits/mman.h