diff mbox

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

Message ID 1398428077-32199-3-git-send-email-anders.roxell@linaro.org
State Superseded
Headers show

Commit Message

Anders Roxell April 25, 2014, 12:14 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)