diff mbox

[PATCHv2,2/4] linux-generic:odp_shared_memory:MAP_ANON -std=c99 compatible

Message ID 1399060067-22104-3-git-send-email-anders.roxell@linaro.org
State Accepted
Headers show

Commit Message

Anders Roxell May 2, 2014, 7:47 p.m. UTC
Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
---
 platform/linux-generic/source/odp_shared_memory.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/platform/linux-generic/source/odp_shared_memory.c b/platform/linux-generic/source/odp_shared_memory.c
index 8288b46..784f42b 100644
--- a/platform/linux-generic/source/odp_shared_memory.c
+++ b/platform/linux-generic/source/odp_shared_memory.c
@@ -12,9 +12,7 @@ 
 #include <odp_debug.h>
 
 #include <sys/mman.h>
-#ifdef __powerpc__
 #include <asm/mman.h>
-#endif
 #include <fcntl.h>
 
 #include <stdio.h>
@@ -42,6 +40,10 @@  typedef struct {
 } odp_shm_table_t;
 
 
+#ifndef MAP_ANONYMOUS
+#define MAP_ANONYMOUS MAP_ANON
+#endif
+
 #define SHM_FLAGS (MAP_SHARED | MAP_ANONYMOUS)