From 2a746f231df769a64796698b25a855d994815ecc Mon Sep 17 00:00:00 2001 From: Samuel Thibault Date: Wed, 4 May 2016 19:14:05 +0000 Subject: [PATCH] s-osinte-gnu.ads (Get_Page_Size): Return int and use getpagesize instead of __getpagesize. * s-osinte-gnu.ads (Get_Page_Size): Return int and use getpagesize instead of __getpagesize. From-SVN: r235896 --- gcc/ada/ChangeLog | 5 +++++ gcc/ada/s-osinte-gnu.ads | 7 +++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog index a48c2f5f6f1..60696354ee6 100644 --- a/gcc/ada/ChangeLog +++ b/gcc/ada/ChangeLog @@ -1,3 +1,8 @@ +2016-05-04 Samuel Thibault + + * s-osinte-gnu.ads (Get_Page_Size): Return int and use getpagesize + instead of __getpagesize. + 2016-05-02 Rainer Orth * gcc-interface/Makefile.in (install-gcc-specs): Use foreach. diff --git a/gcc/ada/s-osinte-gnu.ads b/gcc/ada/s-osinte-gnu.ads index 6cac9b9b880..183c5b83f60 100644 --- a/gcc/ada/s-osinte-gnu.ads +++ b/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 -- 2.30.2