petrhosek wrote:

I think a more idiomatic approach would be to use CMake to check if `gettid` is 
available:
```
check_symbol_exists(gettid "unistd.h" HAVE_GETTID)
```
Then in `lldb/unittests/Process/elf-core/ThreadElfCoreTest.cpp` you'd define 
`gettid` only `#if !HAVE_GETTID`.

https://github.com/llvm/llvm-project/pull/104831
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to