cmake HAVE_PTSNAME_R examples

Lewuathe/mlir-hello thirdparty/llvm-project/lldb/cmake/modules/LLDBGenerateConfig.cmake :10

check_symbol_exists(ptsname_r stdlib.h HAVE_PTSNAME_R)