mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 02:01:12 +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));
|
||||
GST_DEBUG (0,"new stack (case 2) at %p\n",s);
|
||||
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) {
|
||||
perror("mmap'ing cothread stack space");
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in a new issue