зеркало из https://github.com/github/ruby.git
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:
Родитель
c74d30e795
Коммит
f05416c91f
|
@ -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
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче