browneee wrote: Your header does appear to have `get_current_dir_name` under `_GNU_SOURCE`: https://gitee.com/openharmony/third_party_musl/blob/master/include/unistd.h#L251 https://github.com/llvm/llvm-project/pull/118193