* s-osinte-gnu.ads (Get_Page_Size): Return int and use getpagesize
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 May 2016 19:14:17 +0000 (19:14 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 4 May 2016 19:14:17 +0000 (19:14 +0000)
instead of __getpagesize.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@235897 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ada/ChangeLog
gcc/ada/s-osinte-gnu.ads

index 748f7e4..c21aa00 100644 (file)
@@ -1,3 +1,8 @@
+2016-05-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
+
+       * s-osinte-gnu.ads (Get_Page_Size): Return int and use getpagesize
+       instead of __getpagesize.
+
 2016-04-28  Eric Botcazou  <ebotcazou@adacore.com>
 
        PR ada/70900
index 6cac9b9..183c5b8 100644 (file)
@@ -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