mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Fix coroutine copy implementation on OpenBSD
OpenBSD is the only platform that uses this support by default, and it did not work because while OpenBSD supports alloca, it does not include alloca.h. This should be backported to Ruby 2.7. From George Koehler
This commit is contained in:
parent
c74d30e795
commit
f05416c91f
1 changed files with 4 additions and 0 deletions
|
@ -12,7 +12,11 @@
|
|||
#include <setjmp.h>
|
||||
#include <string.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
/* OpenBSD supports alloca, but does not include alloca.h */
|
||||
#ifndef __OpenBSD__
|
||||
#include <alloca.h>
|
||||
#endif
|
||||
|
||||
#define COROUTINE __attribute__((noreturn)) void
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue