projects
/
platform
/
upstream
/
efl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5af3757
)
eina: fix compiling of safepointers on OSX
author
Jean Guyomarc'h
<jean@guyomarch.bzh>
Wed, 15 Jun 2016 20:33:39 +0000
(22:33 +0200)
committer
Jean Guyomarc'h
<jean@guyomarch.bzh>
Wed, 15 Jun 2016 20:33:39 +0000
(22:33 +0200)
This is a reccurring compatibility issue...
MAP_ANONYMOUS is not defined on OSX, but MAP_ANON is.
I know MAP_ANON is marked as deprecated in the Linux man
pages, but it has the benefit of being more portable.
src/lib/eina/eina_safepointer.c
patch
|
blob
|
history
diff --git
a/src/lib/eina/eina_safepointer.c
b/src/lib/eina/eina_safepointer.c
index
8336ea0
..
42433ea
100644
(file)
--- a/
src/lib/eina/eina_safepointer.c
+++ b/
src/lib/eina/eina_safepointer.c
@@
-75,7
+75,7
@@
_eina_safepointer_calloc(int number, size_t size)
* MEM_PAGE_SIZE;
header = mmap(NULL, newsize, PROT_READ | PROT_WRITE,
- MAP_PRIVATE | MAP_ANON
YMOUS
, -1, 0);
+ MAP_PRIVATE | MAP_ANON, -1, 0);
if (header == MAP_FAILED)
{
ERR("mmap of Eina_Safepointer table region failed.");