tidwall / llco

A low-level coroutine library for C
Other
59 stars 1 forks source link

android build error #1

Open calvin2021y opened 4 months ago

calvin2021y commented 4 months ago
llco/llco.c:1131:5: error: conflicting types for 'dladdr'
 1131 | int dladdr(const void *, void *);
      |     ^
/android-ndk-r27/toolchains/llvm/prebuilt/darwin-x86_64/bin/../sysroot/usr/include/dlfcn.h:133:5: note: previous declaration is here
  133 | int dladdr(const void* _Nonnull __addr, Dl_info* _Nonnull __info);
calvin2021y commented 4 months ago

Cross-platform. Linux, Mac, Webassembly, iOS, Android, FreeBSD, Windows, RaspPi, RISC-V

Is there a way to CI test for all platforms ?

calvin2021y commented 4 months ago

remove _GNU_SOURCE and add LLCO_NOUNWIND fix the problem.

android NDK has the build in libunwind.a (I guess based on llvm), so I guess it should work with llco.