summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorKonstantin Belousov <kostik@pooma.home>2010-03-06 16:46:52 +0200
committerKonstantin Belousov <kostik@pooma.home>2010-03-06 16:46:52 +0200
commitd7f51410753f67c0ae1caa5fbdb428f7718b99ec (patch)
treec3085c470c0d70dfe9e9cf06bdaedc6d94aea261 /tests
parent3eabce18b1e70c3b26975024e450977dfb4b84b9 (diff)
downloadlibunwind-d7f51410753f67c0ae1caa5fbdb428f7718b99ec.tar.gz
MAP_ANONYMOUS
Diffstat (limited to 'tests')
-rw-r--r--tests/mapper.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/mapper.c b/tests/mapper.c
index 1006a8c4..6edce711 100644
--- a/tests/mapper.c
+++ b/tests/mapper.c
@@ -36,6 +36,10 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
#include <sys/mman.h>
+#if !defined(MAP_ANONYMOUS) && defined(MAP_ANON)
+# define MAP_ANONYMOUS MAP_ANON
+#endif
+
int
main (int argc, char **argv)
{