commit | 88f29fefa86c9fe32c888c2b161e38b20c478cf5 | [log] [tgz] |
---|---|---|
author | Nick Kralevich <nnk@google.com> | Mon Apr 26 16:45:12 2010 -0700 |
committer | Nick Kralevich <nnk@google.com> | Mon Apr 26 17:00:14 2010 -0700 |
tree | fadf1b297e5f7e025d9d03a792bcc136f1f7b899 | |
parent | 8e274f34768870eebc14a4044dbf0dc0e69f9f81 [diff] |
fix build on darwin. Change-Id: I655b92f0a09bc4bc1b2b277b24ca24c081b4da94
diff --git a/libacc/acc.cpp b/libacc/acc.cpp index 73d2cdd..6e13f9a 100644 --- a/libacc/acc.cpp +++ b/libacc/acc.cpp
@@ -25,6 +25,10 @@ #include <sys/mman.h> +#if defined(MAP_ANON) && !defined(MAP_ANONYMOUS) +#define MAP_ANONYMOUS MAP_ANON +#endif + #if defined(__arm__) #define DEFAULT_ARM_CODEGEN #define PROVIDE_ARM_CODEGEN