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:
Wim Taymans 2001-01-14 14:57:56 +00:00
parent 73ae4b1bce
commit a72f9832d1

View file

@ -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;