summaryrefslogtreecommitdiff
path: root/libitm/testsuite/libitm.c
diff options
context:
space:
mode:
authormpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>2014-10-06 12:35:06 +0000
committermpolacek <mpolacek@138bc75d-0d04-0410-961f-82ee72b054a4>2014-10-06 12:35:06 +0000
commit7743567b7462b55e84680d45e3cdbd9b5467c000 (patch)
treef57f49b01139f3a2e9ef883f34f3eba6de99b6f5 /libitm/testsuite/libitm.c
parent5720186d18883ddbbfcd422dd7e8638e19fd7bf3 (diff)
downloadgcc-7743567b7462b55e84680d45e3cdbd9b5467c000.tar.gz
* testsuite/libitm.c/memcpy-1.c: Declare getpagesize.
* testsuite/libitm.c/memset-1.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@215931 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libitm/testsuite/libitm.c')
-rw-r--r--libitm/testsuite/libitm.c/memcpy-1.c1
-rw-r--r--libitm/testsuite/libitm.c/memset-1.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/libitm/testsuite/libitm.c/memcpy-1.c b/libitm/testsuite/libitm.c/memcpy-1.c
index 03b381285df..32a4b6c3d54 100644
--- a/libitm/testsuite/libitm.c/memcpy-1.c
+++ b/libitm/testsuite/libitm.c/memcpy-1.c
@@ -32,6 +32,7 @@
static unsigned char *buf1, *buf2;
static size_t bufsize, page_size;
static int fail;
+int getpagesize (void);
static void
do_test (size_t align1, size_t align2, size_t len)
diff --git a/libitm/testsuite/libitm.c/memset-1.c b/libitm/testsuite/libitm.c/memset-1.c
index 11aea458ca1..91ae2857cb8 100644
--- a/libitm/testsuite/libitm.c/memset-1.c
+++ b/libitm/testsuite/libitm.c/memset-1.c
@@ -32,6 +32,7 @@
static unsigned char *buf;
static size_t bufsize, page_size;
static int fail;
+int getpagesize (void);
#ifndef MAP_ANONYMOUS
# ifdef MAP_ANON