From c098c3acc8c48b4b6883c50c9a87e81dbe98ba24 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Thu, 12 May 2011 10:49:30 -0400 Subject: [PATCH] [test/blob] Use MAP_ANON instead of MAP_ANONYMOUS More portable. --- test/test-blob.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/test-blob.c b/test/test-blob.c index beb23a5cd..f3f7a8633 100644 --- a/test/test-blob.c +++ b/test/test-blob.c @@ -169,7 +169,7 @@ fixture_init (fixture_t *fixture, gconstpointer user_data) { uintptr_t pagesize = get_pagesize (); - data = mmap (NULL, pagesize, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS, -1, 0); + data = mmap (NULL, pagesize, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANON, -1, 0); g_assert (data != (char *) -1); memcpy ((char *) data, test_data, sizeof (test_data)); mprotect ((char *) data, pagesize, PROT_READ);