aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2016-05-04 19:14:17 +0000
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>2016-05-04 19:14:17 +0000
commit6446c3ffc3d4ae12979de061bc7952a86c472649 (patch)
tree9aab6ac8b6b129ba855665ea0595cf136b89f144
parentca4be35f73bf53fd58df79ed134b47d60f6c4a18 (diff)
* s-osinte-gnu.ads (Get_Page_Size): Return int and use getpagesize
instead of __getpagesize. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-6-branch@235897 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r--gcc/ada/ChangeLog5
-rw-r--r--gcc/ada/s-osinte-gnu.ads7
2 files changed, 8 insertions, 4 deletions
diff --git a/gcc/ada/ChangeLog b/gcc/ada/ChangeLog
index 748f7e4be29..c21aa00d958 100644
--- a/gcc/ada/ChangeLog
+++ b/gcc/ada/ChangeLog
@@ -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
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