memcpy-1.c: Allow for MAP_ANON spelling.

libitm:

	* testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
	* testsuite/libitm.c/memset-1.c: Likewise.

From-SVN: r181611
This commit is contained in:
Iain Sandoe 2011-11-22 09:49:32 +00:00
parent 0c082b2037
commit 9c9d352aba
3 changed files with 17 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2011-11-22 Iain Sandoe <iains@gcc.gnu.org>
* testsuite/libitm.c/memcpy-1.c: Allow for MAP_ANON spelling.
* testsuite/libitm.c/memset-1.c: Likewise.
2011-11-21 Andreas Tobler <andreast@fgznet.ch>
* configure: Regenerate.

View File

@ -84,6 +84,12 @@ do_test (size_t align1, size_t align2, size_t len)
}
}
#ifndef MAP_ANONYMOUS
# ifdef MAP_ANON
# define MAP_ANONYMOUS MAP_ANON
# endif
#endif
int main()
{
size_t i, j;

View File

@ -33,6 +33,12 @@ static unsigned char *buf;
static size_t bufsize, page_size;
static int fail;
#ifndef MAP_ANONYMOUS
# ifdef MAP_ANON
# define MAP_ANONYMOUS MAP_ANON
# endif
#endif
static void
do_test (size_t align, size_t len)
{