kaniini / libucontext

ucontext implementation featuring glibc-compatible ABI
Other
102 stars 41 forks source link

build error on macos #43

Closed keengo99 closed 2 years ago

keengo99 commented 2 years ago
/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/ucontext.h:51:2: error: The deprecated ucontext routines require _XOPEN_SOURCE to be defined
#error The deprecated ucontext routines require _XOPEN_SOURCE to be defined
 ^
In file included from arch/x86_64/makecontext.c:19:
In file included from include/libucontext/libucontext.h:5:
include/libucontext/bits.h:8:9: error: unknown type name 'greg_t'
typedef greg_t libucontext_greg_t;
        ^
include/libucontext/bits.h:9:9: error: unknown type name 'ucontext_t'
typedef ucontext_t libucontext_ucontext_t;
        ^
localhost:libucontext lei$ uname -a
Darwin localhost 21.4.0 Darwin Kernel Version 21.4.0: Fri Mar 18 00:45:05 PDT 2022; root:xnu-8020.101.4~15/RELEASE_X86_64 x86_64
keengo99 commented 2 years ago

success build with FREESTANDING=yes