mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 04:01:08 +00:00
Change MAP_ANONYMOUS to MAP_ANON in the mmap for BSD compatibility
Original commit message from CVS: Change MAP_ANONYMOUS to MAP_ANON in the mmap for BSD compatibility
This commit is contained in:
parent
73ae4b1bce
commit
a72f9832d1
1 changed files with 1 additions and 1 deletions
|
@ -112,7 +112,7 @@ cothread_create (cothread_context *ctx)
|
||||||
COTHREAD_STACKSIZE));
|
COTHREAD_STACKSIZE));
|
||||||
GST_DEBUG (0,"new stack (case 2) at %p\n",s);
|
GST_DEBUG (0,"new stack (case 2) at %p\n",s);
|
||||||
if (mmap((char *)s,COTHREAD_STACKSIZE*(sizeof(int)),
|
if (mmap((char *)s,COTHREAD_STACKSIZE*(sizeof(int)),
|
||||||
PROT_READ|PROT_WRITE|PROT_EXEC,MAP_FIXED|MAP_PRIVATE|MAP_ANONYMOUS,
|
PROT_READ|PROT_WRITE|PROT_EXEC,MAP_FIXED|MAP_PRIVATE|MAP_ANON,
|
||||||
-1,0) < 0) {
|
-1,0) < 0) {
|
||||||
perror("mmap'ing cothread stack space");
|
perror("mmap'ing cothread stack space");
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in a new issue