From 5eda3fbb44340a089440a809b3b771e4de4cf08f Mon Sep 17 00:00:00 2001
From: barracuda156 <vital.had@gmail.com>
Date: Tue, 9 Jan 2024 23:51:06 +0800
Subject: [PATCH] check_address_test.cc: missed MAP_ANON fix

---
 src/tests/check_address_test.cc | 4 ++++
 1 file changed, 4 insertions(+)

diff --git src/tests/check_address_test.cc src/tests/check_address_test.cc
index 9c230c5..885a498 100644
--- src/tests/check_address_test.cc
+++ src/tests/check_address_test.cc
@@ -44,6 +44,10 @@
 #undef FORCE_PIPES
 #endif
 
+#ifndef MAP_ANONYMOUS
+# define MAP_ANONYMOUS MAP_ANON
+#endif
+
 #include "tests/testutil.h"
 
 void* unreadable = mmap(0, getpagesize(), PROT_NONE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0);
